feat(projects): 添加抽屉
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<n-button
|
||||
class="fixed top-240px right-14px z-10000"
|
||||
:class="{ '!right-330px': app.settingDrawerVisible }"
|
||||
@click="toggleSettingdrawerVisible"
|
||||
>
|
||||
点击
|
||||
</n-button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { NButton } from 'naive-ui';
|
||||
import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
const { toggleSettingdrawerVisible } = useAppStore();
|
||||
</script>
|
||||
<style scoped></style>
|
||||
3
src/layouts/common/SettingDrawer/components/index.ts
Normal file
3
src/layouts/common/SettingDrawer/components/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import DrawerButton from './DrawerButton/index.vue';
|
||||
|
||||
export { DrawerButton };
|
||||
Reference in New Issue
Block a user