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

Commit721a5a8

Browse files
committed
[Feat]: Add tabindex to the password field
1 parent1746b64 commit721a5a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎client/packages/lowcoder/src/comps/comps/textInputComp/passwordComp.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { RefControl } from "comps/controls/refControl";
4242
importReact,{useContext,useEffect}from"react";
4343
import{EditorContext}from"comps/editorState";
4444
import{migrateOldData}from"comps/generators/simpleGenerators";
45+
import{NumberControl}from"comps/controls/codeControl";
4546

4647
constPasswordStyle=styled(InputPassword)<{
4748
$style:InputLikeStyleType;
@@ -63,6 +64,7 @@ let PasswordTmpComp = (function () {
6364
labelStyle:styleControl(LabelStyle,'labelStyle'),
6465
inputFieldStyle:styleControl(InputLikeStyle,'inputFieldStyle'),
6566
animationStyle:styleControl(AnimationStyle,'animationStyle'),
67+
tabIndex:NumberControl,
6668
};
6769
returnnewUICompBuilder(childrenMap,(props,dispatch)=>{
6870
const[inputProps,validateState]=useTextInputProps(props);
@@ -76,6 +78,7 @@ let PasswordTmpComp = (function () {
7678
ref={props.viewRef}
7779
visibilityToggle={props.visibilityToggle}
7880
$style={props.inputFieldStyle}
81+
tabIndex={typeofprops.tabIndex==='number' ?props.tabIndex :undefined}
7982
/>
8083
),
8184
style:props.style,
@@ -105,6 +108,7 @@ let PasswordTmpComp = (function () {
105108
})}
106109
{readOnlyPropertyView(children)}
107110
{children.prefixIcon.propertyView({label:trans("button.prefixIcon")})}
111+
{children.tabIndex.propertyView({label:trans("prop.tabIndex")})}
108112
</Section><Sectionname={sectionNames.validation}>
109113
{requiredPropertyView(children)}
110114
{children.showValidationWhenEmpty.propertyView({label:trans("prop.showEmptyValidation")})}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp