feat(demos): 添加 Naive UI 组件演示页面
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 4m2s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m6s

This commit is contained in:
严浩
2025-10-30 13:21:01 +08:00
parent 8130915d0e
commit b623365e38
6 changed files with 149 additions and 16 deletions

View File

@@ -1,26 +1,14 @@
<script setup lang="ts">
import type { GlobalThemeOverrides } from 'naive-ui';
import { darkTheme } from 'naive-ui';
import { RouterView } from 'vue-router';
const appStore = useAppStore();
// https://www.naiveui.com/zh-CN/light/docs/customize-theme
const themeOverrides: GlobalThemeOverrides = {
common: {},
};
import AppNaiveUIProvider from './AppNaiveUIProvider.vue';
</script>
<template>
<DynamicDialog />
<ConfirmDialog />
<Toast />
<n-config-provider
:theme-overrides
preflight-style-disabled
:theme="appStore.isDark ? darkTheme : null"
abstract
>
<AppNaiveUIProvider>
<RouterView />
</n-config-provider>
</AppNaiveUIProvider>
</template>