From 2e7e9d20d9821827938164c8dd443848d06fe46b Mon Sep 17 00:00:00 2001 From: "zhili.wzl" Date: Wed, 22 Sep 2021 00:25:16 +0800 Subject: [PATCH] fix(formily-antd): fix DatePicker settings --- formily/antd/src/locales/DatePicker.ts | 20 ++++++++++---------- formily/antd/src/schemas/DatePicker.ts | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/formily/antd/src/locales/DatePicker.ts b/formily/antd/src/locales/DatePicker.ts index e5b46507b..5660c9566 100644 --- a/formily/antd/src/locales/DatePicker.ts +++ b/formily/antd/src/locales/DatePicker.ts @@ -17,7 +17,7 @@ export const DatePicker = { format: '格式', picker: { title: '选择器类型', - dataSource: ['时间', '日期', '月份', '年', '季度'], + dataSource: ['时间', '日期', '月份', '年', '季度', '财年'], }, showNow: '显示此刻', showTime: '时间选择', @@ -34,18 +34,18 @@ export const DatePicker = { tooltip: 'Format (currentDate: moment) => boolean', }, disabledTime: { - title: '不可选时间', - tooltip: '格式 (currentDate: moment) => boolean', + title: 'Disabled Time', + tooltip: 'Format (currentDate: moment) => boolean', }, - inputReadOnly: '输入框只读', - format: '格式', + inputReadOnly: 'Input ReadOnly', + format: 'Format', picker: { - title: '选择器类型', - dataSource: ['时间', '日期', '月份', '年', '季度'], + title: 'Picker Type', + dataSource: ['Time', 'Date', 'Month', 'Year', 'Quarter', 'Decade'], }, - showNow: '显示此刻', - showTime: '时间选择', - showToday: '显示今天', + showNow: 'Show Now', + showTime: 'Show Time', + showToday: 'Show Today', }, }, }, diff --git a/formily/antd/src/schemas/DatePicker.ts b/formily/antd/src/schemas/DatePicker.ts index 5b72fcf47..70c185e93 100644 --- a/formily/antd/src/schemas/DatePicker.ts +++ b/formily/antd/src/schemas/DatePicker.ts @@ -70,7 +70,7 @@ export const DatePicker: ISchema & { RangePicker?: ISchema } = { properties: { picker: { type: 'string', - enum: ['time', 'date', 'month', 'year', 'decade'], + enum: ['time', 'date', 'month', 'year', 'quarter', 'decade'], 'x-decorator': 'FormItem', 'x-component': 'Select', 'x-component-props': {