mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Merge pull request #8469 from allenve/master
fix: input-date 静态展示问题 Close: #8458
This commit is contained in:
commit
af806d553c
@ -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
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user