perf: 优化顶部布局

This commit is contained in:
奔跑的面条 2024-04-17 10:18:49 +08:00
parent 3bfbee4cc1
commit 026b07721a
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<n-space class="header-left-btn" :size="25">
<n-space class="header-left-btn" :wrap="false" :size="25">
<n-button size="small" quaternary @click="goHomeHandle()">
<template #icon>
<n-icon :depth="3">
@ -7,7 +7,7 @@
</n-icon>
</template>
</n-button>
<n-space>
<n-space :wrap="false">
<!-- 模块展示按钮 -->
<n-tooltip v-for="item in btnList" :key="item.key" placement="bottom" trigger="hover">
<template #trigger>

View File

@ -1,5 +1,5 @@
<template>
<n-space class="go-mt-0">
<n-space class="go-mt-0" :wrap="false">
<n-button v-for="item in comBtnList" :key="item.title" :type="item.type" ghost @click="item.event">
<template #icon>
<component :is="item.icon"></component>