@@ -4,6 +4,7 @@ import { RecordConstructorToComp, RecordConstructorToView } from "lowcoder-core"
44import {
55 BoolCodeControl ,
66 CustomRuleControl ,
7+ NumberControl ,
78 RangeControl ,
89 StringControl ,
910} from "../../controls/codeControl" ;
@@ -92,6 +93,7 @@ const commonChildren = {
9293 suffixIcon : withDefault ( IconControl , "/icon:regular/clock" ) ,
9394 timeZone : dropdownControl ( timeZoneOptions , Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone ) ,
9495 viewRef : RefControl < CommonPickerMethods > ,
96+ tabIndex : NumberControl ,
9597 ...validationChildren ,
9698} ;
9799
@@ -212,6 +214,7 @@ const TimePickerTmpCmp = new UICompBuilder(childrenMap, (props) => {
212214 onFocus = { ( ) => props . onEvent ( "focus" ) }
213215 onBlur = { ( ) => props . onEvent ( "blur" ) }
214216 suffixIcon = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
217+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
215218 />
216219 ) ,
217220 showValidationWhenEmpty : props . showValidationWhenEmpty ,
@@ -263,6 +266,7 @@ const TimePickerTmpCmp = new UICompBuilder(childrenMap, (props) => {
263266 { commonAdvanceSection ( children ) }
264267 { children . use12Hours . propertyView ( { label : trans ( "prop.use12Hours" ) } ) }
265268 { children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
269+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
266270 </ Section >
267271 ) }
268272
@@ -368,6 +372,7 @@ const TimeRangeTmpCmp = (function () {
368372 onFocus = { ( ) => props . onEvent ( "focus" ) }
369373 onBlur = { ( ) => props . onEvent ( "blur" ) }
370374 suffixIcon = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
375+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
371376 />
372377 ) ;
373378
@@ -439,6 +444,7 @@ const TimeRangeTmpCmp = (function () {
439444 { commonAdvanceSection ( children ) }
440445 { children . use12Hours . propertyView ( { label : trans ( "prop.use12Hours" ) } ) }
441446 { children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
447+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
442448 </ Section >
443449 ) }
444450
0 commit comments