@@ -73,6 +73,7 @@ const commonChildren = {
7373 label : LabelControl ,
7474 placeholder : withDefault ( StringControl , trans ( "time.placeholder" ) ) ,
7575 format : StringControl ,
76+ inputFormat : withDefault ( StringControl , TIME_FORMAT ) ,
7677 disabled : BoolCodeControl ,
7778 onEvent : eventHandlerControl ( EventOptions ) ,
7879 showTime : BoolControl ,
@@ -95,7 +96,7 @@ const commonChildren = {
9596} ;
9697
9798const timePickerComps = ( props : RecordConstructorToView < typeof commonChildren > ) =>
98- _ . pick ( props , "format" , "use12Hours" , "minuteStep" , "secondStep" , "placeholder" ) ;
99+ _ . pick ( props , "format" , "inputFormat" , " use12Hours", "minuteStep" , "secondStep" , "placeholder" ) ;
99100
100101/* const commonBasicSection = (children: RecordConstructorToComp<typeof commonChildren>) => [
101102 formatPropertyView({ children }),
@@ -141,7 +142,7 @@ type secondStepType = TimePickerProps['secondStep'];
141142
142143export type TimeCompViewProps = Pick <
143144 RecordConstructorToView < typeof childrenMap > ,
144- "disabled" | "use12Hours" | "format" | "viewRef"
145+ "disabled" | "use12Hours" | "format" | "inputFormat" | " viewRef"
145146> & Pick <
146147 TimePickerProps , "hourStep" | "minuteStep" | "secondStep"
147148> & {
@@ -252,7 +253,7 @@ const TimePickerTmpCmp = new UICompBuilder(childrenMap, (props) => {
252253 { ( useContext ( EditorContext ) . editorModeStatus === "layout" || useContext ( EditorContext ) . editorModeStatus === "both" ) && children . label . getPropertyView ( ) }
253254 { ( useContext ( EditorContext ) . editorModeStatus === "layout" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
254255 < Section name = { sectionNames . layout } >
255- { children . format . propertyView ( { label : trans ( "time.format" ) } ) }
256+ { formatPropertyView ( { children , placeholder : TIME_FORMAT } ) }
256257 { children . placeholder . propertyView ( { label : trans ( "time.placeholderText" ) } ) }
257258 </ Section >
258259 ) }
@@ -428,7 +429,7 @@ const TimeRangeTmpCmp = (function () {
428429 { ( useContext ( EditorContext ) . editorModeStatus === "layout" || useContext ( EditorContext ) . editorModeStatus === "both" ) && children . label . getPropertyView ( ) }
429430 { ( useContext ( EditorContext ) . editorModeStatus === "layout" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
430431 < Section name = { sectionNames . layout } >
431- { children . format . propertyView ( { label : trans ( "time.format" ) } ) }
432+ { formatPropertyView ( { children , placeholder : TIME_FORMAT } ) }
432433 { children . placeholder . propertyView ( { label : trans ( "time.placeholderText" ) } ) }
433434 </ Section >
434435 ) }
0 commit comments