Skip to content

Commit

Permalink
fix(formily-antd): fix DatePicker settings
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Sep 21, 2021
1 parent f827344 commit 2e7e9d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions formily/antd/src/locales/DatePicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DatePicker = {
format: '格式',
picker: {
title: '选择器类型',
dataSource: ['时间', '日期', '月份', '年', '季度'],
dataSource: ['时间', '日期', '月份', '年', '季度', '财年'],
},
showNow: '显示此刻',
showTime: '时间选择',
Expand All @@ -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',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion formily/antd/src/schemas/DatePicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 2e7e9d2

Please sign in to comment.