|
|
@@ -3,33 +3,21 @@
|
|
|
<h3 class="drawer-title">菜单导航设置</h3>
|
|
|
<div class="nav-wrap">
|
|
|
<el-tooltip content="左侧菜单" placement="bottom">
|
|
|
- <div
|
|
|
- class="item left"
|
|
|
- @click="handleNavType(NavTypeEnum.LEFT)"
|
|
|
- :style="{ '--theme': theme }"
|
|
|
- :class="{ activeItem: navType == NavTypeEnum.LEFT }"
|
|
|
- >
|
|
|
+ <div class="item left" @click="handleNavType(NavTypeEnum.LEFT)" :style="{ '--theme': theme }"
|
|
|
+ :class="{ activeItem: navType == NavTypeEnum.LEFT }">
|
|
|
<b></b><b></b>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip content="混合菜单" placement="bottom">
|
|
|
- <div
|
|
|
- class="item mix"
|
|
|
- @click="handleNavType(NavTypeEnum.MIX)"
|
|
|
- :style="{ '--theme': theme }"
|
|
|
- :class="{ activeItem: navType == NavTypeEnum.MIX }"
|
|
|
- >
|
|
|
+ <div class="item mix" @click="handleNavType(NavTypeEnum.MIX)" :style="{ '--theme': theme }"
|
|
|
+ :class="{ activeItem: navType == NavTypeEnum.MIX }">
|
|
|
<b></b><b></b>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip content="顶部菜单" placement="bottom">
|
|
|
- <div
|
|
|
- class="item top"
|
|
|
- @click="handleNavType(NavTypeEnum.TOP)"
|
|
|
- :style="{ '--theme': theme }"
|
|
|
- :class="{ activeItem: navType == NavTypeEnum.TOP }"
|
|
|
- >
|
|
|
+ <div class="item top" @click="handleNavType(NavTypeEnum.TOP)" :style="{ '--theme': theme }"
|
|
|
+ :class="{ activeItem: navType == NavTypeEnum.TOP }">
|
|
|
<b></b><b></b>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
@@ -42,10 +30,10 @@
|
|
|
<img src="@/assets/images/dark.svg" alt="dark" />
|
|
|
<div v-if="sideTheme === 'theme-dark'" class="setting-drawer-block-checbox-selectIcon" style="display: block">
|
|
|
<i aria-label="图标: check" class="anticon anticon-check">
|
|
|
- <svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" :fill="theme" aria-hidden="true" focusable="false" class>
|
|
|
+ <svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" :fill="theme" aria-hidden="true"
|
|
|
+ focusable="false" class>
|
|
|
<path
|
|
|
- d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
|
|
|
- />
|
|
|
+ d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" />
|
|
|
</svg>
|
|
|
</i>
|
|
|
</div>
|
|
|
@@ -54,10 +42,10 @@
|
|
|
<img src="@/assets/images/light.svg" alt="light" />
|
|
|
<div v-if="sideTheme === 'theme-light'" class="setting-drawer-block-checbox-selectIcon" style="display: block">
|
|
|
<i aria-label="图标: check" class="anticon anticon-check">
|
|
|
- <svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" :fill="theme" aria-hidden="true" focusable="false" class>
|
|
|
+ <svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" :fill="theme" aria-hidden="true"
|
|
|
+ focusable="false" class>
|
|
|
<path
|
|
|
- d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
|
|
|
- />
|
|
|
+ d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" />
|
|
|
</svg>
|
|
|
</i>
|
|
|
</div>
|
|
|
@@ -150,12 +138,13 @@ const storeSettings = computed(() => settingsStore);
|
|
|
const predefineColors = ref(['#409EFF', '#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1', '#1e90ff', '#c71585']);
|
|
|
const navType = ref(settingsStore.navType);
|
|
|
const radiusBase = ref(settingsStore.radiusBase);
|
|
|
-// 是否暗黑模式
|
|
|
+// 是否暗黑模式(强制亮色,不走系统变量)
|
|
|
const isDark = useDark({
|
|
|
storageKey: 'useDarkKey',
|
|
|
valueDark: 'dark',
|
|
|
valueLight: 'light'
|
|
|
});
|
|
|
+isDark.value = false;
|
|
|
// 匹配菜单颜色
|
|
|
watch(isDark, () => {
|
|
|
if (isDark.value) {
|
|
|
@@ -256,10 +245,12 @@ defineExpose({
|
|
|
color: rgba(0, 0, 0, 0.85);
|
|
|
line-height: 22px;
|
|
|
font-weight: bold;
|
|
|
+
|
|
|
.drawer-title {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.setting-drawer-block-checbox {
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
@@ -339,6 +330,7 @@ defineExpose({
|
|
|
height: 30%;
|
|
|
background: #fff;
|
|
|
}
|
|
|
+
|
|
|
b:last-child {
|
|
|
width: 30%;
|
|
|
background: #1b2a47;
|
|
|
@@ -348,6 +340,7 @@ defineExpose({
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.mix {
|
|
|
b:first-child {
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
@@ -355,6 +348,7 @@ defineExpose({
|
|
|
height: 30%;
|
|
|
background: #1b2a47;
|
|
|
}
|
|
|
+
|
|
|
b:last-child {
|
|
|
width: 30%;
|
|
|
background: #1b2a47;
|
|
|
@@ -363,6 +357,7 @@ defineExpose({
|
|
|
border-radius: 0 0 0 4px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.top {
|
|
|
b:first-child {
|
|
|
display: block;
|