Skip to content

Commit 347d61b

Browse files
committed
field style added to passwor
1 parent 32fcd8e commit 347d61b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import { withMethodExposing } from "../../generators/withMethodExposing";
2727
import { styleControl } from "comps/controls/styleControl";
2828
import styled from "styled-components";
29-
import { InputLikeStyle, InputLikeStyleType, LabelStyle } from "comps/controls/styleControlConstants";
29+
import { ComponentStyle, InputLikeStyle, InputLikeStyleType, LabelStyle } from "comps/controls/styleControlConstants";
3030
import {
3131
hiddenPropertyView,
3232
minLengthPropertyView,
@@ -58,7 +58,8 @@ let PasswordTmpComp = (function () {
5858
visibilityToggle: BoolControl.DEFAULT_TRUE,
5959
prefixIcon: IconControl,
6060
style: styleControl(InputLikeStyle),
61-
labelStyle: styleControl(LabelStyle)
61+
labelStyle: styleControl(LabelStyle),
62+
field: styleControl(ComponentStyle)
6263
};
6364
return new UICompBuilder(childrenMap, (props) => {
6465
const [inputProps, validateState] = useTextInputProps(props);
@@ -74,7 +75,8 @@ let PasswordTmpComp = (function () {
7475
/>
7576
),
7677
style: props.style,
77-
labelStyle:props.labelStyle,
78+
labelStyle: props.labelStyle,
79+
field:props.field,
7880
...validateState,
7981
});
8082
})
@@ -110,6 +112,7 @@ let PasswordTmpComp = (function () {
110112
<>
111113
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>
112114
<Section name={sectionNames.labelStyle}>{children.labelStyle.getPropertyView()}</Section>
115+
<Section name={sectionNames.field}>{children.field.getPropertyView()}</Section>
113116
</>
114117
)}
115118
</>

0 commit comments

Comments
 (0)