From 324edc27e1067372f28d5368b17f14a44cef11b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E6=89=BF?= <1141845963@qq.com> Date: Sun, 9 Oct 2022 13:58:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=A8=E6=80=81=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=B4=E5=BA=A6=E4=B8=8D=E5=90=8C=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=95=B4=E5=90=88=E7=BB=B4=E5=BA=A6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/hooks/useSync.hook.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/chart/hooks/useSync.hook.ts b/src/views/chart/hooks/useSync.hook.ts index bfa7400d..f4fcdedc 100644 --- a/src/views/chart/hooks/useSync.hook.ts +++ b/src/views/chart/hooks/useSync.hook.ts @@ -55,6 +55,7 @@ export const useSync = () => { ) => { // 补充 class 上的方法 let newComponent: CreateComponentType = await createComponent(_componentInstance.chartConfig) + newComponent.option = _componentInstance?.option if (callBack) { if (changeId) { callBack(merge(newComponent, { ..._componentInstance, id: getUUID() }))