Skip to content

Commit cd2470c

Browse files
committed
field styles added to checkbox
1 parent e5e22a0 commit cd2470c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "./selectInputConstants";
1616
import { formDataChildren } from "../formComp/formDataConstants";
1717
import { styleControl } from "comps/controls/styleControl";
18-
import { CheckboxStyle, CheckboxStyleType, LabelStyle } from "comps/controls/styleControlConstants";
18+
import { CheckboxStyle, CheckboxStyleType, ComponentStyle, LabelStyle } from "comps/controls/styleControlConstants";
1919
import { RadioLayoutOptions, RadioPropertyView } from "./radioCompConstants";
2020
import { dropdownControl } from "../../controls/dropdownControl";
2121
import { ValueFromOption } from "lowcoder-design";
@@ -140,7 +140,7 @@ let CheckboxBasicComp = (function () {
140140
labelStyle: styleControl(LabelStyle.filter((style) => ['accent', 'validate'].includes(style.name) === false)),
141141
layout: dropdownControl(RadioLayoutOptions, "horizontal"),
142142
viewRef: RefControl<HTMLDivElement>,
143-
143+
field:styleControl(ComponentStyle),
144144
...SelectInputValidationChildren,
145145
...formDataChildren,
146146
};
@@ -153,6 +153,7 @@ let CheckboxBasicComp = (function () {
153153
required: props.required,
154154
style: props.style,
155155
labelStyle: props.labelStyle,
156+
field:props.field,
156157
children: (
157158
<CheckboxGroup
158159
ref={props.viewRef}

0 commit comments

Comments
 (0)