@@ -33,6 +33,7 @@ import { trans } from "i18n";
33
33
import { RefControl } from "comps/controls/refControl" ;
34
34
import { TextAreaRef } from "antd/es/input/TextArea" ;
35
35
import { blurMethod , focusWithOptions } from "comps/utils/methodUtils" ;
36
+ import { NumberControl } from "comps/controls/codeControl" ;
36
37
37
38
import React , { useContext , useEffect } from "react" ;
38
39
import { EditorContext } from "comps/editorState" ;
@@ -80,7 +81,8 @@ let TextAreaTmpComp = (function () {
80
81
labelStyle : styleControl ( LabelStyle , 'labelStyle' ) ,
81
82
textAreaScrollBar : withDefault ( BoolControl , false ) ,
82
83
inputFieldStyle : styleControl ( InputLikeStyle , 'inputFieldStyle' ) ,
83
- animationStyle : styleControl ( AnimationStyle , 'animationStyle' )
84
+ animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
85
+ tabIndex : NumberControl
84
86
} ;
85
87
return new UICompBuilder ( childrenMap , ( props ) => {
86
88
const [ inputProps , validateState ] = useTextInputProps ( props ) ;
@@ -96,6 +98,7 @@ let TextAreaTmpComp = (function () {
96
98
allowClear = { props . allowClear }
97
99
style = { { height : "100% !important" , resize : "vertical" } }
98
100
$style = { props . inputFieldStyle }
101
+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
99
102
/>
100
103
</ Wrapper >
101
104
) ,
@@ -128,6 +131,7 @@ let TextAreaTmpComp = (function () {
128
131
< Section name = { sectionNames . advanced } >
129
132
{ allowClearPropertyView ( children ) }
130
133
{ readOnlyPropertyView ( children ) }
134
+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
131
135
</ Section >
132
136
< TextInputValidationSection { ...children } /> </ >
133
137
) }
0 commit comments