Skip to content

Commit

Permalink
fix: input-date 静态展示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
allenve committed Oct 24, 2023
1 parent 25dc28f commit 5aee16b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/amis/src/renderers/Form/StaticHoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

0 comments on commit 5aee16b

Please sign in to comment.