fix: input-date 静态展示问题

This commit is contained in:
allenve 2023-10-24 10:27:20 +08:00
parent 25dc28fcfc
commit 5aee16b540

View File

@ -150,11 +150,12 @@ export function supportStatic<T extends FormControlProps>() {
}
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', {
type: 'date',
value,
format: type === 'time' && timeFormat ? timeFormat : inputFormat,
valueFormat: format
valueFormat: valueFormat || format
});
}