mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-04 20:12:51 +08:00
20 lines
485 B
Vue
20 lines
485 B
Vue
<script setup lang="ts">
|
|
import { useAppStore } from '@/store'
|
|
|
|
const appStore = useAppStore()
|
|
</script>
|
|
|
|
<template>
|
|
<n-tooltip placement="bottom" trigger="hover">
|
|
<template #trigger>
|
|
<CommonWrapper @click="appStore.toggleCollapse()">
|
|
<icon-park-outline-menu-unfold v-if="appStore.collapsed" />
|
|
<icon-park-outline-menu-fold v-else />
|
|
</CommonWrapper>
|
|
</template>
|
|
<span>切换侧边栏</span>
|
|
</n-tooltip>
|
|
</template>
|
|
|
|
<style scoped></style>
|