diff --git a/packages/amis-editor/src/plugin/Form/InputDate.tsx b/packages/amis-editor/src/plugin/Form/InputDate.tsx index 5fa11bcbe..2db66c167 100644 --- a/packages/amis-editor/src/plugin/Form/InputDate.tsx +++ b/packages/amis-editor/src/plugin/Form/InputDate.tsx @@ -75,7 +75,7 @@ const DateType: { { label: 'HH:mm:ss', value: 'HH:mm:ss', - timeFormat: 'HH:mm' + timeFormat: 'HH:mm:ss' }, { label: 'HH时mm分', diff --git a/packages/amis-editor/src/plugin/Time.tsx b/packages/amis-editor/src/plugin/Time.tsx index 67e70e50b..d32c7e069 100644 --- a/packages/amis-editor/src/plugin/Time.tsx +++ b/packages/amis-editor/src/plugin/Time.tsx @@ -30,6 +30,8 @@ export class TimePlugin extends DatePlugin { { type: 'input-time', name: 'value', + inputFormat: 'HH:mm:ss', + timeFormat: 'HH:mm:ss', label: '时间数值' }, {