59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
|
|
|
/**
|
|
* Purpose: baseCalendar supports antdv-locale.ts by holding or executing the base calendar page or API role.
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
*/
|
|
const baseCalendar = (zhCN.Calendar || { lang: {} }) as any
|
|
/**
|
|
* Purpose: baseDatePicker supports antdv-locale.ts by holding or executing the base date picker page or API role.
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
*/
|
|
const baseDatePicker = (zhCN.DatePicker || { lang: {}, timePickerLocale: {} }) as any
|
|
/**
|
|
* Purpose: baseTimePicker supports antdv-locale.ts by holding or executing the base time picker page or API role.
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
*/
|
|
const baseTimePicker = (zhCN.TimePicker || {}) as any
|
|
|
|
const antdLocale: any = {
|
|
...zhCN,
|
|
Modal: {
|
|
...zhCN.Modal,
|
|
okText: '确认',
|
|
cancelText: zhCN.Modal?.cancelText || '取消',
|
|
justOkText: zhCN.Modal?.justOkText || '知道了'
|
|
},
|
|
Popconfirm: {
|
|
...zhCN.Popconfirm,
|
|
okText: '确认',
|
|
cancelText: zhCN.Popconfirm?.cancelText || '取消'
|
|
},
|
|
Calendar: {
|
|
...baseCalendar,
|
|
lang: {
|
|
...baseCalendar.lang,
|
|
ok: '确认',
|
|
now: '现在时间'
|
|
}
|
|
},
|
|
DatePicker: {
|
|
...baseDatePicker,
|
|
lang: {
|
|
...baseDatePicker.lang,
|
|
ok: '确认',
|
|
now: '现在时间'
|
|
},
|
|
timePickerLocale: {
|
|
...baseDatePicker.timePickerLocale,
|
|
now: '现在时间'
|
|
}
|
|
},
|
|
TimePicker: {
|
|
...baseTimePicker,
|
|
now: '现在时间'
|
|
}
|
|
}
|
|
|
|
export default antdLocale
|