This commit is contained in:
dap
2024-09-02 15:59:58 +08:00
parent 17aa044da7
commit e4d64e3f20
3 changed files with 18 additions and 9 deletions

View File

@@ -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,
});
}