fix(amis-editor): 日期组件配置面板格式初始值不正确 (#8507)

Co-authored-by: yanglu19 <yanglu19@baidu.com>
This commit is contained in:
Dora 2023-10-27 10:22:10 +08:00 committed by GitHub
parent 96df5551cf
commit 347fb66b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,