Skip to content

Commit c04c6fb

Browse files
committed
field style added to text area
1 parent 1e15ddd commit c04c6fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { withMethodExposing, refMethods } from "../../generators/withMethodExposing";
2323
import { styleControl } from "comps/controls/styleControl";
2424
import styled from "styled-components";
25-
import { InputLikeStyle, InputLikeStyleType, LabelStyle } from "comps/controls/styleControlConstants";
25+
import { ComponentStyle, InputLikeStyle, InputLikeStyleType, LabelStyle } from "comps/controls/styleControlConstants";
2626
import { TextArea } from "components/TextArea";
2727
import {
2828
allowClearPropertyView,
@@ -72,12 +72,14 @@ let TextAreaTmpComp = (function () {
7272
allowClear: BoolControl,
7373
autoHeight: withDefault(AutoHeightControl, "fixed"),
7474
style: styleControl(InputLikeStyle),
75-
labelStyle: styleControl(LabelStyle)
75+
labelStyle: styleControl(LabelStyle),
76+
field: styleControl(ComponentStyle)
7677
};
7778
return new UICompBuilder(childrenMap, (props) => {
7879
const [inputProps, validateState] = useTextInputProps(props);
7980
return props.label({
8081
required: props.required,
82+
field:props.field,
8183
children: (
8284
<Wrapper $style={props.style}>
8385
<TextAreaStyled
@@ -120,6 +122,7 @@ let TextAreaTmpComp = (function () {
120122
<>
121123
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>
122124
<Section name={sectionNames.labelStyle}>{children.labelStyle.getPropertyView()}</Section>
125+
<Section name={sectionNames.field}>{children.field.getPropertyView()}</Section>
123126
</>
124127
)}
125128
</>

0 commit comments

Comments
 (0)