Skip to content

Commit e5e22a0

Browse files
committed
field styles added to radio
1 parent d546b25 commit e5e22a0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ let RadioBasicComp = (function () {
104104
return props.label({
105105
required: props.required,
106106
style: props.style,
107-
labelStyle:props.labelStyle,
107+
labelStyle: props.labelStyle,
108+
field:props.field,
108109
children: (
109110
<Radio
110111
ref={props.viewRef}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from "./selectInputConstants";
1515
import { formDataChildren, FormDataPropertyView } from "../formComp/formDataConstants";
1616
import { styleControl } from "comps/controls/styleControl";
17-
import { LabelStyle, RadioStyle } from "comps/controls/styleControlConstants";
17+
import { ComponentStyle, LabelStyle, RadioStyle } from "comps/controls/styleControlConstants";
1818
import { dropdownControl } from "../../controls/dropdownControl";
1919
import { hiddenPropertyView, disabledPropertyView } from "comps/utils/propertyUtils";
2020
import { trans } from "i18n";
@@ -40,7 +40,7 @@ export const RadioChildrenMap = {
4040
labelStyle:styleControl(LabelStyle),
4141
layout: dropdownControl(RadioLayoutOptions, "horizontal"),
4242
viewRef: RefControl<HTMLDivElement>,
43-
43+
field:styleControl(ComponentStyle),
4444
...SelectInputValidationChildren,
4545
...formDataChildren,
4646
};
@@ -96,6 +96,7 @@ export const RadioPropertyView = (
9696
<>
9797
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>
9898
<Section name={sectionNames.labelStyle}>{children.labelStyle.getPropertyView()}</Section>
99+
<Section name={sectionNames.field}>{children.field.getPropertyView()}</Section>
99100
</>
100101
)}
101102
</>

0 commit comments

Comments
 (0)