initial commit

This commit is contained in:
yangsy
2025-08-13 01:36:30 +08:00
commit 202f83d157
78 changed files with 5896 additions and 0 deletions

50
src/App.vue Normal file
View File

@@ -0,0 +1,50 @@
<script lang="ts">
const GlobalFeedback = defineComponent({
setup() {
window.$dialog = useDialog()
window.$loadingBar = useLoadingBar()
window.$message = useMessage()
window.$notification = useNotification()
return () => null
},
})
</script>
<script setup lang="ts">
import {
dateZhCN,
NConfigProvider,
NDialogProvider,
NLoadingBarProvider,
NMessageProvider,
NNotificationProvider,
useDialog,
useLoadingBar,
useMessage,
useNotification,
zhCN,
} from 'naive-ui'
import { defineComponent } from 'vue'
import { useThemeStore } from '@/stores/theme'
import { storeToRefs } from 'pinia'
const themeStore = useThemeStore()
const { themeMode } = storeToRefs(themeStore)
</script>
<template>
<NConfigProvider :date-locale="dateZhCN" :locale="zhCN" :theme="themeMode">
<NDialogProvider>
<NLoadingBarProvider>
<NMessageProvider>
<NNotificationProvider>
<GlobalFeedback />
<RouterView />
</NNotificationProvider>
</NMessageProvider>
</NLoadingBarProvider>
</NDialogProvider>
</NConfigProvider>
</template>
<style scoped></style>