perf: 左侧菜单折叠后的tooltip主题与整体菜单保持统一

This commit is contained in:
xiaoxian521 2024-01-03 17:26:57 +08:00
parent f17eda34b4
commit 76cbbad940
4 changed files with 15 additions and 7 deletions

View File

@ -155,7 +155,7 @@
"vite": "^5.0.10",
"vite-plugin-cdn-import": "^0.3.5",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-fake-server": "^2.0.1",
"vite-plugin-fake-server": "2.0.0",
"vite-plugin-remove-console": "^2.2.0",
"vite-plugin-router-warn": "^1.0.0",
"vite-svg-loader": "^5.1.0",

View File

@ -323,8 +323,8 @@ devDependencies:
specifier: ^0.5.1
version: 0.5.1(vite@5.0.10)
vite-plugin-fake-server:
specifier: ^2.0.1
version: 2.0.1
specifier: 2.0.0
version: 2.0.0
vite-plugin-remove-console:
specifier: ^2.2.0
version: 2.2.0
@ -8672,8 +8672,8 @@ packages:
- supports-color
dev: true
/vite-plugin-fake-server@2.0.1:
resolution: {integrity: sha512-uQgOPHtMIrgVdpuJa2zQ+v6bMlSqczhlb4xfTE+K0lDfKTeJ+Z795HXYv2BItNPFYJ5E5wOlZ8MLDzjudK+22A==}
/vite-plugin-fake-server@2.0.0:
resolution: {integrity: sha512-RCKS7te5lNzJFEQqPEaMqthwJhYaYMUMAPj7no4tmirqf5YEd6b4t7JMSGTkP2HPSplPE/uDQ56k9XjNreq2CQ==}
dependencies:
bundle-import: 0.0.1
chokidar: 3.5.3

View File

@ -19,5 +19,5 @@ const props = defineProps({
:noticeItem="item"
/>
</div>
<el-empty description="暂无消息" />
<el-empty v-else description="暂无消息" />
</template>

View File

@ -18,7 +18,14 @@ const showLogo = ref(
)?.showLogo ?? true
);
const { device, pureApp, isCollapse, menuSelect, toggleSideBar } = useNav();
const {
device,
pureApp,
isCollapse,
tooltipEffect,
menuSelect,
toggleSideBar
} = useNav();
const subMenuData = ref([]);
@ -91,6 +98,7 @@ onBeforeUnmount(() => {
router
unique-opened
mode="vertical"
:popper-effect="tooltipEffect"
class="outer-most select-none"
:collapse="isCollapse"
:default-active="defaultActive"