Browse Source

fix(echarts): add resize animation (#1950)

pull/1975/head
ChenErik 4 years ago
committed by GitHub
parent
commit
e073b4c944
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/hooks/web/useECharts.ts

7
src/hooks/web/useECharts.ts

@ -79,7 +79,12 @@ export function useECharts(
}
function resize() {
chartInstance?.resize();
chartInstance?.resize({
animation: {
duration: 300,
easing: 'quadraticIn',
},
});
}
watch(

Loading…
Cancel
Save