Skip to content

Commit d546b25

Browse files
committed
field styles added to autocomplae
1 parent e42c53e commit d546b25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/packages/lowcoder/src/comps/comps/autoCompleteComp/autoCompleteComp.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Input, Section, sectionNames } from "lowcoder-design";
33
import { BoolControl } from "comps/controls/boolControl";
44
import { styleControl } from "comps/controls/styleControl";
55
import {
6+
ComponentStyle,
67
InputLikeStyle,
78
InputLikeStyleType,
89
LabelStyle,
@@ -87,6 +88,7 @@ const childrenMap = {
8788
autocompleteIconColor: dropdownControl(autocompleteIconColor, "blue"),
8889
componentSize: dropdownControl(componentSize, "small"),
8990
valueInItems: booleanExposingStateControl("valueInItems"),
91+
field: styleControl(ComponentStyle),
9092
};
9193

9294
const getValidate = (value: any): "" | "warning" | "error" | undefined => {
@@ -279,7 +281,8 @@ let AutoCompleteCompBase = (function () {
279281
</>
280282
),
281283
style: props.style,
282-
labelStyle:props.labelStyle,
284+
labelStyle: props.labelStyle,
285+
field:props.field,
283286
...validateState,
284287
});
285288
})
@@ -341,6 +344,9 @@ let AutoCompleteCompBase = (function () {
341344
<Section name={sectionNames.labelStyle}>
342345
{children.labelStyle.getPropertyView()}
343346
</Section>
347+
<Section name={sectionNames.field}>
348+
{children.field.getPropertyView()}
349+
</Section>
344350
</>
345351
);
346352
})

0 commit comments

Comments
 (0)