mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: input-date 静态展示问题
This commit is contained in:
parent
25dc28fcfc
commit
5aee16b540
@ -150,11 +150,12 @@ export function supportStatic<T extends FormControlProps>() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderStaticDateTypes(props: any) {
|
function renderStaticDateTypes(props: any) {
|
||||||
const {render, type, inputFormat, timeFormat, format, value} = props;
|
const {render, type, inputFormat, valueFormat, timeFormat, format, value} =
|
||||||
|
props;
|
||||||
return render('static-input-date', {
|
return render('static-input-date', {
|
||||||
type: 'date',
|
type: 'date',
|
||||||
value,
|
value,
|
||||||
format: type === 'time' && timeFormat ? timeFormat : inputFormat,
|
format: type === 'time' && timeFormat ? timeFormat : inputFormat,
|
||||||
valueFormat: format
|
valueFormat: valueFormat || format
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user