From e073b4c9443894457c7463bb43f918b508c4bc9a Mon Sep 17 00:00:00 2001
From: ChenErik <37365363+ChenErik@users.noreply.github.com>
Date: 星期四, 16 六月 2022 19:04:30 +0800
Subject: [PATCH] fix(echarts): add resize animation (#1950)

---
 src/hooks/web/useECharts.ts |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/hooks/web/useECharts.ts b/src/hooks/web/useECharts.ts
index fa93e60..cdc02ef 100644
--- a/src/hooks/web/useECharts.ts
+++ b/src/hooks/web/useECharts.ts
@@ -79,7 +79,12 @@
   }
 
   function resize() {
-    chartInstance?.resize();
+    chartInstance?.resize({
+      animation: {
+        duration: 300,
+        easing: 'quadraticIn',
+      },
+    });
   }
 
   watch(

--
Gitblit v1.8.0