feat(AppNaiveUIProvider): 添加日期本地化支持
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 4m5s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m23s

This commit is contained in:
严浩
2025-10-30 14:32:12 +08:00
parent 5b54fe5182
commit 270a838185

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { GlobalThemeOverrides } from 'naive-ui';
import { darkTheme } from 'naive-ui';
import { darkTheme, dateZhCN, zhCN } from 'naive-ui';
import type { FunctionalComponent } from 'vue';
import { createTextVNode } from 'vue';
@@ -38,6 +38,8 @@ declare global {
<template>
<NConfigProvider
:locale="zhCN"
:date-locale="dateZhCN"
:theme-overrides
preflight-style-disabled
:theme="appStore.isDark ? darkTheme : null"