From a5f54fd31fc3e4b94824f4a9ad799e81a8ac21e0 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Sun, 10 Apr 2022 19:05:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9header=E5=B1=82?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../headerLeftBtn}/index.ts | 0 .../headerLeftBtn}/index.vue | 2 +- .../headerRightBtn}/index.ts | 0 .../headerRightBtn}/index.vue | 0 .../headerTitle}/index.ts | 0 .../headerTitle}/index.vue | 0 src/views/chart/index.vue | 26 ++++++------------- 7 files changed, 9 insertions(+), 19 deletions(-) rename src/views/chart/{HeaderLeftBtn => contentHeader/headerLeftBtn}/index.ts (100%) rename src/views/chart/{HeaderLeftBtn => contentHeader/headerLeftBtn}/index.vue (98%) rename src/views/chart/{HeaderRightBtn => contentHeader/headerRightBtn}/index.ts (100%) rename src/views/chart/{HeaderRightBtn => contentHeader/headerRightBtn}/index.vue (100%) rename src/views/chart/{HeaderTitle => contentHeader/headerTitle}/index.ts (100%) rename src/views/chart/{HeaderTitle => contentHeader/headerTitle}/index.vue (100%) diff --git a/src/views/chart/HeaderLeftBtn/index.ts b/src/views/chart/contentHeader/headerLeftBtn/index.ts similarity index 100% rename from src/views/chart/HeaderLeftBtn/index.ts rename to src/views/chart/contentHeader/headerLeftBtn/index.ts diff --git a/src/views/chart/HeaderLeftBtn/index.vue b/src/views/chart/contentHeader/headerLeftBtn/index.vue similarity index 98% rename from src/views/chart/HeaderLeftBtn/index.vue rename to src/views/chart/contentHeader/headerLeftBtn/index.vue index af92532d..ae1a4fd1 100644 --- a/src/views/chart/HeaderLeftBtn/index.vue +++ b/src/views/chart/contentHeader/headerLeftBtn/index.vue @@ -35,7 +35,7 @@ import { toRefs, Ref, reactive, computed } from 'vue' import { renderIcon, goDialog, goHome } from '@/utils' import { icon } from '@/plugins' -import { useRemoveKeyboard } from '../hooks/useKeyboard.hook' +import { useRemoveKeyboard } from '../../hooks/useKeyboard.hook' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' diff --git a/src/views/chart/HeaderRightBtn/index.ts b/src/views/chart/contentHeader/headerRightBtn/index.ts similarity index 100% rename from src/views/chart/HeaderRightBtn/index.ts rename to src/views/chart/contentHeader/headerRightBtn/index.ts diff --git a/src/views/chart/HeaderRightBtn/index.vue b/src/views/chart/contentHeader/headerRightBtn/index.vue similarity index 100% rename from src/views/chart/HeaderRightBtn/index.vue rename to src/views/chart/contentHeader/headerRightBtn/index.vue diff --git a/src/views/chart/HeaderTitle/index.ts b/src/views/chart/contentHeader/headerTitle/index.ts similarity index 100% rename from src/views/chart/HeaderTitle/index.ts rename to src/views/chart/contentHeader/headerTitle/index.ts diff --git a/src/views/chart/HeaderTitle/index.vue b/src/views/chart/contentHeader/headerTitle/index.vue similarity index 100% rename from src/views/chart/HeaderTitle/index.vue rename to src/views/chart/contentHeader/headerTitle/index.vue diff --git a/src/views/chart/index.vue b/src/views/chart/index.vue index e0936711..f24de368 100644 --- a/src/views/chart/index.vue +++ b/src/views/chart/index.vue @@ -47,22 +47,12 @@ const chartEditStore = useChartEditStore() // 记录初始化 chartHistoryStoreStore.canvasInit(chartEditStore.getEditCanvas) -const HeaderLeftBtn = loadAsyncComponent(() => - import('./headerLeftBtn/index.vue') -) -const HeaderRightBtn = loadAsyncComponent(() => - import('./headerRightBtn/index.vue') -) -const HeaderTitle = loadAsyncComponent(() => import('./headerTitle/index.vue')) -const ContentLayers = loadAsyncComponent(() => - import('./contentLayers/index.vue') -) -const ContentCharts = loadAsyncComponent(() => - import('./contentCharts/index.vue') -) -const ContentConfigurations = loadAsyncComponent(() => - import('./contentConfigurations/index.vue') -) +const HeaderLeftBtn = loadAsyncComponent(() => import('./contentHeader/headerLeftBtn/index.vue')) +const HeaderRightBtn = loadAsyncComponent(() => import('./contentHeader/headerRightBtn/index.vue')) +const HeaderTitle = loadAsyncComponent(() => import('./contentHeader/headerTitle/index.vue')) +const ContentLayers = loadAsyncComponent(() => import('./contentLayers/index.vue')) +const ContentCharts = loadAsyncComponent(() => import('./contentCharts/index.vue')) +const ContentConfigurations = loadAsyncComponent(() => import('./contentConfigurations/index.vue')) // 右键 const { @@ -74,10 +64,10 @@ const {