Skip to content

Commit e9a17d7

Browse files
committed
Fixed issue when apply bulk margin and padding
1 parent 15ee234 commit e9a17d7

File tree

21 files changed

+54
-32
lines changed

21 files changed

+54
-32
lines changed

client/packages/lowcoder-design/src/components/Label.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const labelCss: any = css`
55
user-select: none;
66
77
font-size: 13px;
8-
color: #222222;
98
109
&:hover {
1110
cursor: default;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ let AutoCompleteCompBase = (function () {
278278
</ConfigProvider>
279279
</>
280280
),
281-
style: props.labelStyle,
281+
style: props.style,
282+
labelStyle:props.labelStyle,
282283
...validateState,
283284
});
284285
})

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ export const datePickerControl = new UICompBuilder(childrenMap, (props) => {
165165
}
166166
return props.label({
167167
required: props.required,
168-
style: props.labelStyle,
168+
style: props.style,
169+
labelStyle:props.labelStyle,
169170
children: (
170171
<DateUIView
171172
viewRef={props.viewRef}
@@ -315,7 +316,8 @@ export const dateRangeControl = (function () {
315316

316317
return props.label({
317318
required: props.required,
318-
style: props.labelStyle,
319+
style: props.style,
320+
labelStyle:props.labelStyle,
319321
children: children,
320322
...(startResult.validateStatus !== "success"
321323
? startResult

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ const NumberInputTmpComp = (function () {
378378
return props.label({
379379
required: props.required,
380380
children: <CustomInputNumber {...props} />,
381-
style: props.labelStyle,
381+
style: props.style,
382+
labelStyle:props.labelStyle,
382383
...validate(props),
383384
});
384385
})

client/packages/lowcoder/src/comps/comps/numberInputComp/rangeSliderComp.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const RangeSliderBasicComp = (function () {
1414
};
1515
return new UICompBuilder(childrenMap, (props) => {
1616
return props.label({
17-
style: props.labelStyle,
17+
style: props.style,
18+
labelStyle: props.labelStyle,
1819
children: (
1920
<SliderWrapper
2021
onMouseDown={(e: any) => {
@@ -28,7 +29,7 @@ const RangeSliderBasicComp = (function () {
2829
range={true}
2930
value={[props.start.value, props.end.value]}
3031
$style={props.style}
31-
style={{margin: 0}}
32+
style={{ margin: 0 }}
3233
onChange={([start, end]) => {
3334
props.start.onChange(start);
3435
props.end.onChange(end);

client/packages/lowcoder/src/comps/comps/numberInputComp/sliderComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const SliderBasicComp = (function () {
1818
};
1919
return new UICompBuilder(childrenMap, (props) => {
2020
return props.label({
21-
style: props.labelStyle,
21+
style: props.style,
22+
labelStyle:props.labelStyle,
2223
children: (
2324
<SliderWrapper
2425
onMouseDown={(e: any) => {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const RatingBasicComp = (function () {
6464
}, [value]);
6565

6666
return props.label({
67-
style: props.labelStyle,
67+
style: props.style,
68+
labelStyle: props.labelStyle,
6869
children: (
6970
<RateStyled
7071
count={props.max}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ let CascaderBasicComp = (function () {
2020

2121
return new UICompBuilder(childrenMap, (props) => {
2222
return props.label({
23-
style: props.labelStyle,
23+
style: props.style,
24+
labelStyle:props.labelStyle,
2425
children: (
2526
<CascaderStyle
2627
ref={props.viewRef}

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ export const getStyle = (style: CheckboxStyleType) => {
6262
&:hover .ant-checkbox-inner,
6363
.ant-checkbox:hover .ant-checkbox-inner,
6464
.ant-checkbox-input + ant-checkbox-inner {
65-
background-color:${style.hoverBackground ? style.hoverBackground :'#fff'};
65+
background-color:${style.hoverBackground ? style.hoverBackground : '#fff'};
6666
}
6767
6868
&:hover .ant-checkbox-checked .ant-checkbox-inner,
6969
.ant-checkbox:hover .ant-checkbox-inner,
7070
.ant-checkbox-input + ant-checkbox-inner {
71-
background-color:${style.hoverBackground ? style.hoverBackground:'#ffff'};
71+
background-color:${style.hoverBackground ? style.hoverBackground : '#ffff'};
7272
}
7373
7474
&:hover .ant-checkbox-inner,
@@ -135,7 +135,7 @@ const CheckboxBasicComp = (function () {
135135
onEvent: ChangeEventHandlerControl,
136136
options: SelectInputOptionControl,
137137
style: styleControl(CheckboxStyle),
138-
labelStyle:styleControl(LabelStyle),
138+
labelStyle: styleControl(LabelStyle.filter((style) => ['accent', 'validate'].includes(style.name) === false)),
139139
layout: dropdownControl(RadioLayoutOptions, "horizontal"),
140140
viewRef: RefControl<HTMLDivElement>,
141141

@@ -149,7 +149,8 @@ const CheckboxBasicComp = (function () {
149149
] = useSelectInputValidate(props);
150150
return props.label({
151151
required: props.required,
152-
style: props.labelStyle,
152+
style: props.style,
153+
labelStyle: props.labelStyle,
153154
children: (
154155
<CheckboxGroup
155156
ref={props.viewRef}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const MultiSelectBasicComp = (function () {
3535

3636
return props.label({
3737
required: props.required,
38-
style: props.labelStyle,
38+
style: props.style,
39+
labelStyle:props.labelStyle,
3940
children: (
4041
<SelectUIView
4142
{...props}

0 commit comments

Comments
 (0)