feat: SettingsDrawer

This commit is contained in:
yangsy
2025-09-11 11:57:00 +08:00
parent 13c558bfc1
commit 2ac9bbdd37
3 changed files with 42 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
<script setup lang="ts">
import { NDivider, NDrawer, NDrawerContent, NFlex } from 'naive-ui';
import ThemeSwitch from './theme-switch.vue';
const show = defineModel<boolean>('show');
</script>
<template>
<NDrawer v-model:show="show" :width="330">
<NDrawerContent closable title="系统设置" :native-scrollbar="false">
<NFlex vertical justify="center">
<NDivider>主题</NDivider>
<ThemeSwitch />
</NFlex>
</NDrawerContent>
</NDrawer>
</template>
<style scoped lang="scss"></style>