mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 19:41:59 +08:00
style(header): 修改头部图标默认值大小
This commit is contained in:
parent
c7249558a6
commit
2a3fb4c64b
@ -1,17 +1,23 @@
|
||||
<template>
|
||||
<n-icon :size="props.size || 20" :depth="props.depth" :color="props.color">
|
||||
<n-icon :size="props.size" :depth="props.depth" :color="props.color">
|
||||
<Icon :icon="props.icon" />
|
||||
</n-icon>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Icon } from '@iconify/vue';
|
||||
const props = defineProps<{
|
||||
icon: string;
|
||||
color?: string;
|
||||
size?: number;
|
||||
depth?: 1 | 2 | 3 | 4 | 5;
|
||||
}>();
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
icon: string;
|
||||
color?: string;
|
||||
size?: number;
|
||||
depth?: 1 | 2 | 3 | 4 | 5;
|
||||
}>(),
|
||||
{
|
||||
size: 18,
|
||||
icon: 'icon-park-outline:baby-feet',
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -17,7 +17,7 @@ const router = useRouter();
|
||||
const routeStore = useRouteStore();
|
||||
const { routerPush } = useAppRouter();
|
||||
const routes = computed(() => {
|
||||
return routeStore.createBreadcrumbFromRoutes(router.currentRoute.value.name as string!, routeStore.userRoutes);
|
||||
return routeStore.createBreadcrumbFromRoutes(router.currentRoute.value.name as string, routeStore.userRoutes);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<HeaderButton @click="appStore.toggleCollapse()">
|
||||
<i-icon-park-outline-menu-unfold v-if="appStore.collapsed" class="text-18px" />
|
||||
<i-icon-park-outline-menu-fold v-else class="text-18px" />
|
||||
<i-icon-park-outline-menu-unfold v-if="appStore.collapsed" />
|
||||
<i-icon-park-outline-menu-fold v-else />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="appStore.toggleDarkMode()">
|
||||
<i-icon-park-outline-moon v-if="appStore.darkMode" class="text-18px" />
|
||||
<i-icon-park-outline-sun v-else class="text-18px" />
|
||||
<i-icon-park-outline-moon v-if="appStore.darkMode" />
|
||||
<i-icon-park-outline-sun v-else />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
<span>切换主题模式</span>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="appStore.toggleFullScreen()">
|
||||
<i-icon-park-outline-off-screen-two v-if="appStore.fullScreen" class="text-18px" />
|
||||
<i-icon-park-outline-full-screen-two v-else class="text-18px" />
|
||||
<i-icon-park-outline-off-screen-two v-if="appStore.fullScreen" />
|
||||
<i-icon-park-outline-full-screen-two v-else />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
<span>全屏</span>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="toMyGithub">
|
||||
<i-icon-park-outline-github class="text-18px" />
|
||||
<i-icon-park-outline-github />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
<span>Github</span>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<template #trigger>
|
||||
<HeaderButton>
|
||||
<n-badge :value="massageCount" :max="99" style="color: unset">
|
||||
<i-icon-park-outline-remind class="text-18px" />
|
||||
<i-icon-park-outline-remind />
|
||||
</n-badge>
|
||||
</HeaderButton>
|
||||
</template>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="handleReload">
|
||||
<i-icon-park-outline-refresh class="text-18px" :class="{ 'animate-spin': loading }" />
|
||||
<i-icon-park-outline-refresh :class="{ 'animate-spin': loading }" />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
<span>刷新页面</span>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="handleSearch">
|
||||
<i-icon-park-outline-search class="text-18px" />
|
||||
<i-icon-park-outline-search />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
<span>搜索</span>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<template #trigger>
|
||||
<HeaderButton @click="openSetting">
|
||||
<div>
|
||||
<i-icon-park-outline-setting-two class="text-18px" />
|
||||
<i-icon-park-outline-setting-two />
|
||||
<n-drawer v-model:show="drawerActive" :width="300">
|
||||
<n-drawer-content title="系统设置">这是系统设置,但是暂时还没有内容</n-drawer-content>
|
||||
</n-drawer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user