|
|
@ -19,6 +19,8 @@ import { defineComponent, computed, ref, nextTick, provide } from 'vue' |
|
|
|
import { |
|
|
|
import { |
|
|
|
zhCN, |
|
|
|
zhCN, |
|
|
|
enUS, |
|
|
|
enUS, |
|
|
|
|
|
|
|
dateZhCN, |
|
|
|
|
|
|
|
dateEnUS, |
|
|
|
NConfigProvider, |
|
|
|
NConfigProvider, |
|
|
|
darkTheme, |
|
|
|
darkTheme, |
|
|
|
GlobalThemeOverrides, |
|
|
|
GlobalThemeOverrides, |
|
|
@ -61,8 +63,9 @@ const App = defineComponent({ |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<NConfigProvider |
|
|
|
<NConfigProvider |
|
|
|
theme={this.currentTheme} |
|
|
|
theme={this.currentTheme} |
|
|
|
themeOverrides={themeOverrides} |
|
|
|
theme-overrides={themeOverrides} |
|
|
|
style={{ width: '100%', height: '100vh' }} |
|
|
|
style={{ width: '100%', height: '100vh' }} |
|
|
|
|
|
|
|
date-locale={String(this.localesStore.getLocales) === 'zh_CN' ? dateZhCN : dateEnUS} |
|
|
|
locale={String(this.localesStore.getLocales) === 'zh_CN' ? zhCN : enUS} |
|
|
|
locale={String(this.localesStore.getLocales) === 'zh_CN' ? zhCN : enUS} |
|
|
|
> |
|
|
|
> |
|
|
|
<NMessageProvider> |
|
|
|
<NMessageProvider> |
|
|
|