Explorar el Código

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

ChenErik hace 2 años
padre
commit
e073b4c944
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      src/hooks/web/useECharts.ts

+ 6 - 1
src/hooks/web/useECharts.ts

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