@@ -4,6 +4,7 @@ import { RecordConstructorToComp, RecordConstructorToView } from "lowcoder-core"
4
4
import {
5
5
BoolCodeControl ,
6
6
CustomRuleControl ,
7
+ NumberControl ,
7
8
RangeControl ,
8
9
StringControl ,
9
10
} from "../../controls/codeControl" ;
@@ -92,6 +93,7 @@ const commonChildren = {
92
93
suffixIcon : withDefault ( IconControl , "/icon:regular/clock" ) ,
93
94
timeZone : dropdownControl ( timeZoneOptions , Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone ) ,
94
95
viewRef : RefControl < CommonPickerMethods > ,
96
+ tabIndex : NumberControl ,
95
97
...validationChildren ,
96
98
} ;
97
99
@@ -212,6 +214,7 @@ const TimePickerTmpCmp = new UICompBuilder(childrenMap, (props) => {
212
214
onFocus = { ( ) => props . onEvent ( "focus" ) }
213
215
onBlur = { ( ) => props . onEvent ( "blur" ) }
214
216
suffixIcon = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
217
+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
215
218
/>
216
219
) ,
217
220
showValidationWhenEmpty : props . showValidationWhenEmpty ,
@@ -263,6 +266,7 @@ const TimePickerTmpCmp = new UICompBuilder(childrenMap, (props) => {
263
266
{ commonAdvanceSection ( children ) }
264
267
{ children . use12Hours . propertyView ( { label : trans ( "prop.use12Hours" ) } ) }
265
268
{ children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
269
+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
266
270
</ Section >
267
271
) }
268
272
@@ -368,6 +372,7 @@ const TimeRangeTmpCmp = (function () {
368
372
onFocus = { ( ) => props . onEvent ( "focus" ) }
369
373
onBlur = { ( ) => props . onEvent ( "blur" ) }
370
374
suffixIcon = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
375
+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
371
376
/>
372
377
) ;
373
378
@@ -439,6 +444,7 @@ const TimeRangeTmpCmp = (function () {
439
444
{ commonAdvanceSection ( children ) }
440
445
{ children . use12Hours . propertyView ( { label : trans ( "prop.use12Hours" ) } ) }
441
446
{ children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
447
+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
442
448
</ Section >
443
449
) }
444
450
0 commit comments