fix(echarts): add resize animation (#1950)
This commit is contained in:
parent
554f4615a1
commit
e073b4c944
|
|
@ -79,7 +79,12 @@ export function useECharts(
|
||||||
}
|
}
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
chartInstance?.resize();
|
chartInstance?.resize({
|
||||||
|
animation: {
|
||||||
|
duration: 300,
|
||||||
|
easing: 'quadraticIn',
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue