From 8d64714126d054384a81d474b4b0a6b021ef02d5 Mon Sep 17 00:00:00 2001 From: yuntian001 <479820787@qq.com> Date: Thu, 1 Sep 2022 09:26:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=BE=E7=BD=AE=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置按钮显隐v-show改完v-if 设置菜单提取出来放入layout 顶栏隐藏时侧边栏悬浮设置按钮 --- src/components/meSetting.vue | 80 ++------------------------------ src/components/meSettingMenu.vue | 79 +++++++++++++++++++++++++++++++ src/layout/index.vue | 17 ++++++- src/store/modules/setting.ts | 1 + src/styles/variables.scss | 2 + 5 files changed, 100 insertions(+), 79 deletions(-) create mode 100644 src/components/meSettingMenu.vue diff --git a/src/components/meSetting.vue b/src/components/meSetting.vue index 936a3b19..94ac9dd0 100644 --- a/src/components/meSetting.vue +++ b/src/components/meSetting.vue @@ -1,85 +1,11 @@ - diff --git a/src/store/modules/setting.ts b/src/store/modules/setting.ts index 35804b11..e7b7d31c 100644 --- a/src/store/modules/setting.ts +++ b/src/store/modules/setting.ts @@ -8,6 +8,7 @@ const useSettingStore = defineStore('setting', { themeConfig: useStorage(`${settingKey}-theme`, themeConfig), locale: useStorage(`${settingKey}-locale`, localeConfig.localeSetting.locale ?? 'zh-cn'), elLocale: undefined as Language | undefined, + showSettingMenu: false, }), actions: { setPrimaryStyle() { diff --git a/src/styles/variables.scss b/src/styles/variables.scss index e0775779..59acbfe3 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -1,3 +1,5 @@ $page-padding: 20px; $header-top-height: 48px; $header-tag-height: 35px; +$z-index-top: 1999; //当前系统内最高但低于element-plus对应弹窗的z-index +$z-index-higher: 3000; //高于element-plus对应弹窗的z-index