mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
fix(DatePicker): zh-CN is not work in DatePicker (#3273)
* fix(DatePicker): zh-CN is not work in DatePicker * fix(DatePicker): locale zh-CN is not work in DatePicker
This commit is contained in:
parent
2991bb1670
commit
6d047fb53f
@ -1,10 +1,18 @@
|
|||||||
import { genMessage } from '../helper';
|
import { genMessage } from '../helper';
|
||||||
import antdLocale from 'ant-design-vue/es/locale/zh_CN';
|
import antdLocale from 'ant-design-vue/es/locale/zh_CN';
|
||||||
|
import { deepMerge } from '/@/utils';
|
||||||
|
|
||||||
const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true });
|
const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true });
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
message: {
|
message: {
|
||||||
...genMessage(modules as Recordable<Recordable>, 'zh-CN'),
|
...genMessage(modules as Recordable<Recordable>, 'zh-CN'),
|
||||||
antdLocale,
|
antdLocale: {
|
||||||
|
...antdLocale,
|
||||||
|
DatePicker: deepMerge(
|
||||||
|
antdLocale.DatePicker,
|
||||||
|
genMessage(modules as Recordable<Recordable>, 'zh-CN').antdLocale.DatePicker,
|
||||||
|
),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user