Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96b48c8

Browse files
committed
[Feat]: Add tabindex for the checkbox
1 parentd62967b commit96b48c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎client/packages/lowcoder/src/comps/comps/selectInputComp/checkboxComp.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import{defaultasAntdCheckboxGroup}from"antd/es/checkbox/Group";
22
import{SelectInputOptionControl}from"comps/controls/optionsControl";
3-
import{BoolCodeControl}from"../../controls/codeControl";
3+
import{BoolCodeControl,NumberControl}from"../../controls/codeControl";
44
import{arrayStringExposingStateControl}from"../../controls/codeStateControl";
55
import{LabelControl}from"../../controls/labelControl";
66
import{ChangeEventHandlerControl}from"../../controls/eventHandlerControl";
@@ -115,6 +115,7 @@ export const getStyle = (style: CheckboxStyleType) => {
115115
constCheckboxGroup=styled(AntdCheckboxGroup)<{
116116
$style:CheckboxStyleType;
117117
$layout:ValueFromOption<typeofRadioLayoutOptions>;
118+
tabIndex?:number;
118119
}>`
119120
min-height: 32px;
120121
${(props)=>props.$style&&getStyle(props.$style)}
@@ -156,6 +157,7 @@ let CheckboxBasicComp = (function () {
156157
viewRef:RefControl<HTMLDivElement>,
157158
inputFieldStyle:styleControl(CheckboxStyle,'inputFieldStyle'),
158159
animationStyle:styleControl(AnimationStyle,'animationStyle'),
160+
tabIndex:NumberControl,
159161
...SelectInputValidationChildren,
160162
...formDataChildren,
161163
};
@@ -184,6 +186,7 @@ let CheckboxBasicComp = (function () {
184186
value:option.value,
185187
disabled:option.disabled,
186188
}))}
189+
tabIndex={typeofprops.tabIndex==='number' ?props.tabIndex :undefined}
187190
onChange={(values)=>{
188191
handleChange(valuesasstring[]);
189192
}}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp