Skip to content

Commit 79aeeda

Browse files
committed
field styles added to cascader
1 parent cd2470c commit 79aeeda

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

client/packages/lowcoder/src/comps/comps/selectInputComp/cascaderComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ let CascaderBasicComp = (function () {
2121
return new UICompBuilder(childrenMap, (props) => {
2222
return props.label({
2323
style: props.style,
24-
labelStyle:props.labelStyle,
24+
labelStyle: props.labelStyle,
25+
field:props.field,
2526
children: (
2627
<CascaderStyle
2728
ref={props.viewRef}

client/packages/lowcoder/src/comps/comps/selectInputComp/cascaderContants.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { arrayStringExposingStateControl } from "comps/controls/codeStateControl
66
import { BoolControl } from "comps/controls/boolControl";
77
import { LabelControl } from "comps/controls/labelControl";
88
import { styleControl } from "comps/controls/styleControl";
9-
import { CascaderStyle, LabelStyle } from "comps/controls/styleControlConstants";
9+
import { CascaderStyle, ComponentStyle, LabelStyle } from "comps/controls/styleControlConstants";
1010
import {
1111
allowClearPropertyView,
1212
disabledPropertyView,
@@ -40,6 +40,7 @@ export const CascaderChildren = {
4040
viewRef: RefControl<CascaderRef>,
4141
margin: MarginControl,
4242
padding: PaddingControl,
43+
field:styleControl(ComponentStyle)
4344
};
4445

4546
export const CascaderPropertyView = (
@@ -79,6 +80,9 @@ export const CascaderPropertyView = (
7980
<Section name={sectionNames.labelStyle}>
8081
{children.labelStyle.getPropertyView()}
8182
</Section>
83+
<Section name={sectionNames.field}>
84+
{children.field.getPropertyView()}
85+
</Section>
8286
</>
8387
)}
8488
</>

0 commit comments

Comments
 (0)