@@ -32,6 +32,8 @@ import { hasIcon } from "comps/utils";
32
32
import { InputRef } from "antd/es/input" ;
33
33
import { RefControl } from "comps/controls/refControl" ;
34
34
import { migrateOldData , withDefault } from "comps/generators/simpleGenerators" ;
35
+ import { numberSimpleControl } from "comps/controls/numberSimpleControl" ;
36
+ import { NumberControl } from "comps/controls/codeControl" ;
35
37
36
38
import React , { useContext , useEffect } from "react" ;
37
39
import { EditorContext } from "comps/editorState" ;
@@ -55,8 +57,9 @@ const childrenMap = {
55
57
labelStyle :styleControl ( LabelStyle , 'labelStyle' ) ,
56
58
prefixIcon : IconControl ,
57
59
suffixIcon : IconControl ,
58
- inputFieldStyle : styleControl ( InputLikeStyle , 'inputFieldStyle' ) ,
60
+ inputFieldStyle : styleControl ( InputLikeStyle , 'inputFieldStyle' ) ,
59
61
animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
62
+ tabIndex : NumberControl ,
60
63
} ;
61
64
62
65
let InputBasicComp = new UICompBuilder ( childrenMap , ( props ) => {
@@ -72,6 +75,7 @@ let InputBasicComp = new UICompBuilder(childrenMap, (props) => {
72
75
$style = { props . inputFieldStyle }
73
76
prefix = { hasIcon ( props . prefixIcon ) && props . prefixIcon }
74
77
suffix = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
78
+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
75
79
/>
76
80
) ,
77
81
style : props . style ,
@@ -99,6 +103,7 @@ let InputBasicComp = new UICompBuilder(childrenMap, (props) => {
99
103
{ children . prefixIcon . propertyView ( { label : trans ( "button.prefixIcon" ) } ) }
100
104
{ children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
101
105
{ children . showCount . propertyView ( { label : trans ( "prop.showCount" ) } ) }
106
+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
102
107
{ allowClearPropertyView ( children ) }
103
108
{ readOnlyPropertyView ( children ) }
104
109
</ Section >
0 commit comments