未验证 提交 403c672e 编写于 作者: S songjianet 提交者: GitHub

[Fix][UI Next][V1.0.0-Alpha] Fix the problem of incomplete Chinese support for...

[Fix][UI Next][V1.0.0-Alpha] Fix the problem of incomplete Chinese support for all date pickers in the project. (#8688)
上级 67a6813e
......@@ -19,6 +19,8 @@ import { defineComponent, computed, ref, nextTick, provide } from 'vue'
import {
zhCN,
enUS,
dateZhCN,
dateEnUS,
NConfigProvider,
darkTheme,
GlobalThemeOverrides,
......@@ -61,8 +63,9 @@ const App = defineComponent({
return (
<NConfigProvider
theme={this.currentTheme}
themeOverrides={themeOverrides}
theme-overrides={themeOverrides}
style={{ width: '100%', height: '100vh' }}
date-locale={String(this.localesStore.getLocales) === 'zh_CN' ? dateZhCN : dateEnUS}
locale={String(this.localesStore.getLocales) === 'zh_CN' ? zhCN : enUS}
>
<NMessageProvider>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册