fix: echarts切换页面时动画效果 https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IANPQN
This commit is contained in:
@@ -74,12 +74,14 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
|
||||
});
|
||||
};
|
||||
|
||||
function resize() {
|
||||
function resize(withAnimation = true) {
|
||||
chartInstance?.resize({
|
||||
animation: {
|
||||
duration: 300,
|
||||
easing: 'quadraticIn',
|
||||
},
|
||||
animation: withAnimation
|
||||
? {
|
||||
duration: 300,
|
||||
easing: 'quadraticIn',
|
||||
}
|
||||
: undefined,
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user