naive-ui.

This commit is contained in:
2023-01-17 10:42:50 +08:00
parent 5d0f34c144
commit 01760b8eaa
29 changed files with 4864 additions and 2263 deletions

View File

@@ -1,11 +1,14 @@
<script setup lang="ts">
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import { zhCN, dateZhCN, darkTheme } from "naive-ui"
import { isDark } from "./shared/composables/dark"
const theme = computed(() => (isDark.value ? darkTheme : null))
</script>
<template>
<el-config-provider :locale="zhCn">
<n-config-provider :theme="theme" :locale="zhCN" :date-locale="dateZhCN">
<router-view></router-view>
</el-config-provider>
</n-config-provider>
</template>
<style scoped></style>