From b269933ffa2925e7c56d68c721a287f97ffb39af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Fri, 3 Mar 2023 22:25:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=BC=96?= =?UTF-8?q?=E8=BE=91=20JSON=20=E4=BA=A4=E4=BA=92=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/enums/editPageEnum.ts | 3 +- src/layout/components/LayoutHeader/index.vue | 2 +- src/plugins/icon.ts | 7 +- .../chartEditStore/chartEditStore.d.ts | 5 +- .../modules/chartEditStore/chartEditStore.ts | 4 +- .../EditTools/hooks/useSyncUpdate.hook.ts | 46 +++++++-- .../components/EditTools/index.vue | 16 ++- .../ContentHeader/headerRightBtn/index.vue | 32 ++++-- src/views/edit/index.vue | 99 +++++++++++++------ 9 files changed, 158 insertions(+), 56 deletions(-) diff --git a/src/enums/editPageEnum.ts b/src/enums/editPageEnum.ts index 07d51e70..518b6f70 100644 --- a/src/enums/editPageEnum.ts +++ b/src/enums/editPageEnum.ts @@ -12,7 +12,8 @@ export enum DragKeyEnum { // 不同页面保存操作 export enum SavePageEnum { CHART = 'SaveChart', - JSON = 'SaveJSON' + JSON = 'SaveJSON', + CLOSE = 'close' } // 操作枚举 diff --git a/src/layout/components/LayoutHeader/index.vue b/src/layout/components/LayoutHeader/index.vue index 91c80823..718a9282 100644 --- a/src/layout/components/LayoutHeader/index.vue +++ b/src/layout/components/LayoutHeader/index.vue @@ -29,7 +29,7 @@ import { ThemeColorSelect } from '@/components/Pages/ThemeColorSelect'