Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00

导航栏图标样式修改

This commit is contained in:
kubeops 2024-07-07 12:27:35 +08:00
parent 7e9eaab9da
commit db82a33c45
4 changed files with 7 additions and 8 deletions

View File

@ -56,9 +56,7 @@ const handleHistory = () => {
<template #reference>
<el-badge :value="badgeValue" :max="badgeMax" :hidden="badgeValue === 0">
<el-tooltip effect="dark" content="消息通知" placement="bottom">
<el-icon :size="20">
<Bell />
</el-icon>
<el-button :icon="Bell" circle />
</el-tooltip>
</el-badge>
</template>

View File

@ -76,7 +76,9 @@ const handleContentFullClick = () => {
<div>
<!-- 全屏 -->
<el-tooltip v-if="!content" effect="dark" :content="fullscreenTips" placement="bottom">
<SvgIcon :name="fullscreenSvgName" @click="handleFullscreenClick" />
<el-button circle>
<SvgIcon :name="fullscreenSvgName" @click="handleFullscreenClick" />
</el-button>
</el-tooltip>
<!-- 内容区 -->
<el-dropdown v-else :disabled="isFullscreen">

View File

@ -1,6 +1,7 @@
<script lang="ts" setup>
import { ref } from "vue"
import SearchModal from "./SearchModal.vue"
import { Search } from "@element-plus/icons-vue"
/** 控制 modal 显隐 */
const modalVisible = ref<boolean>(false)
@ -13,7 +14,7 @@ const handleOpen = () => {
<template>
<div>
<el-tooltip effect="dark" content="搜索菜单" placement="bottom">
<SvgIcon name="search" @click="handleOpen" />
<el-button :icon="Search" @click="handleOpen" circle />
</el-tooltip>
<SearchModal v-model="modalVisible" />
</div>

View File

@ -25,9 +25,7 @@ const handleChangeTheme = ({ clientX, clientY }: MouseEvent, themeName: ThemeNam
<el-dropdown trigger="click">
<div>
<el-tooltip effect="dark" content="主题模式" placement="bottom">
<el-icon :size="20">
<MagicStick />
</el-icon>
<el-button :icon="MagicStick" circle="" />
</el-tooltip>
</div>
<template #dropdown>