mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
Update Date.tsx
feat:新增月份显示渲染器,并修改对应examples
This commit is contained in:
parent
db6b1e47c3
commit
cbc580aacd
@ -119,3 +119,13 @@ export class TimeFieldRenderer extends DateField {
|
||||
format: 'HH:mm'
|
||||
};
|
||||
}
|
||||
@Renderer({
|
||||
test: /(^|\/)month$/,
|
||||
name: 'month-field'
|
||||
})
|
||||
export class MonthFieldRenderer extends DateField {
|
||||
static defaultProps: Partial<DateProps> = {
|
||||
...DateField.defaultProps,
|
||||
format: 'MM'
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user