mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix(amis-editor): 日期组件配置面板格式初始值不正确 (#8507)
Co-authored-by: yanglu19 <yanglu19@baidu.com>
This commit is contained in:
parent
96df5551cf
commit
347fb66b73
@ -293,7 +293,7 @@ export class DateControlPlugin extends BasePlugin {
|
||||
|
||||
form.setValues({
|
||||
placeholder: DateType[type]?.placeholder,
|
||||
valueFormat: type === 'time' ? 'HH:mm' : 'X',
|
||||
valueFormat: 'X',
|
||||
displayFormat: DateType[type]?.format,
|
||||
minDate: '',
|
||||
maxDate: '',
|
||||
@ -308,7 +308,7 @@ export class DateControlPlugin extends BasePlugin {
|
||||
'值格式',
|
||||
'提交数据前将根据设定格式化数据,请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。'
|
||||
),
|
||||
pipeIn: defaultValue('YYYY-MM-DD'),
|
||||
pipeIn: defaultValue('X'),
|
||||
clearable: true,
|
||||
onChange: (
|
||||
value: string,
|
||||
|
Loading…
Reference in New Issue
Block a user