@@ -32,6 +32,8 @@ import { hasIcon } from "comps/utils";
3232import { InputRef } from "antd/es/input" ;
3333import { RefControl } from "comps/controls/refControl" ;
3434import { migrateOldData , withDefault } from "comps/generators/simpleGenerators" ;
35+ import { numberSimpleControl } from "comps/controls/numberSimpleControl" ;
36+ import { NumberControl } from "comps/controls/codeControl" ;
3537
3638import React , { useContext , useEffect } from "react" ;
3739import { EditorContext } from "comps/editorState" ;
@@ -55,8 +57,9 @@ const childrenMap = {
5557 labelStyle :styleControl ( LabelStyle , 'labelStyle' ) ,
5658 prefixIcon : IconControl ,
5759 suffixIcon : IconControl ,
58- inputFieldStyle : styleControl ( InputLikeStyle , 'inputFieldStyle' ) ,
60+ inputFieldStyle : styleControl ( InputLikeStyle , 'inputFieldStyle' ) ,
5961 animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
62+ tabIndex : NumberControl ,
6063} ;
6164
6265let InputBasicComp = new UICompBuilder ( childrenMap , ( props ) => {
@@ -72,6 +75,7 @@ let InputBasicComp = new UICompBuilder(childrenMap, (props) => {
7275 $style = { props . inputFieldStyle }
7376 prefix = { hasIcon ( props . prefixIcon ) && props . prefixIcon }
7477 suffix = { hasIcon ( props . suffixIcon ) && props . suffixIcon }
78+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
7579 />
7680 ) ,
7781 style : props . style ,
@@ -99,6 +103,7 @@ let InputBasicComp = new UICompBuilder(childrenMap, (props) => {
99103 { children . prefixIcon . propertyView ( { label : trans ( "button.prefixIcon" ) } ) }
100104 { children . suffixIcon . propertyView ( { label : trans ( "button.suffixIcon" ) } ) }
101105 { children . showCount . propertyView ( { label : trans ( "prop.showCount" ) } ) }
106+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
102107 { allowClearPropertyView ( children ) }
103108 { readOnlyPropertyView ( children ) }
104109 </ Section >
0 commit comments