Merge pull request #8469 from allenve/master

fix: input-date 静态展示问题 Close: #8458
This commit is contained in:
Allen 2023-10-24 11:09:19 +08:00 committed by GitHub
commit af806d553c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
});
}