Skip to content

Commit e9b5142

Browse files
committed
field style added to tree select
1 parent 2139d97 commit e9b5142

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/packages/lowcoder/src/comps/comps/treeComp/treeSelectComp.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { default as TreeSelect } from "antd/es/tree-select";
66
import { useEffect } from "react";
77
import styled from "styled-components";
88
import { styleControl } from "comps/controls/styleControl";
9-
import { LabelStyle, TreeSelectStyle, TreeSelectStyleType } from "comps/controls/styleControlConstants";
9+
import { ComponentStyle, LabelStyle, TreeSelectStyle, TreeSelectStyleType } from "comps/controls/styleControlConstants";
1010
import { LabelControl } from "comps/controls/labelControl";
1111
import { dropdownControl } from "comps/controls/dropdownControl";
1212
import {
@@ -67,6 +67,7 @@ const childrenMap = {
6767
inputValue: stateComp<string>(""), // search value
6868
style: styleControl(TreeSelectStyle),
6969
labelStyle:styleControl(LabelStyle),
70+
field:styleControl(ComponentStyle),
7071
viewRef: RefControl<BaseSelectRef>,
7172
};
7273

@@ -102,6 +103,7 @@ const TreeCompView = (
102103
...validateState,
103104
style,
104105
labelStyle,
106+
field:props.field,
105107
children: (
106108
<StyledTreeSelect
107109
ref={props.viewRef}
@@ -185,6 +187,7 @@ let TreeBasicComp = (function () {
185187
<>
186188
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>
187189
<Section name={sectionNames.labelStyle}>{children.labelStyle.getPropertyView()}</Section>
190+
<Section name={sectionNames.field}>{children.field.getPropertyView()}</Section>
188191
</>
189192
)}
190193
</>

0 commit comments

Comments
 (0)