Skip to content

Commit 0e4bb65

Browse files
committed
field style added to range
1 parent 756ba81 commit 0e4bb65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const RangeSliderBasicComp = (function () {
1616
return props.label({
1717
style: props.style,
1818
labelStyle: props.labelStyle,
19+
field:props.field,
1920
children: (
2021
<SliderWrapper
2122
onMouseDown={(e: any) => {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ChangeEventHandlerControl } from "../../controls/eventHandlerControl";
55
import { Section, sectionNames } from "lowcoder-design";
66
import { RecordConstructorToComp } from "lowcoder-core";
77
import { styleControl } from "comps/controls/styleControl";
8-
import { LabelStyle, SliderStyle, SliderStyleType } from "comps/controls/styleControlConstants";
8+
import { ComponentStyle, LabelStyle, SliderStyle, SliderStyleType } from "comps/controls/styleControlConstants";
99
import styled, { css } from "styled-components";
1010
import { default as Slider } from "antd/es/slider";
1111
import { darkenColor, fadeColor } from "lowcoder-design";
@@ -71,6 +71,7 @@ export const SliderChildren = {
7171
labelStyle:styleControl(LabelStyle.filter((style)=> ['accent','validate'].includes(style.name) === false)),
7272
prefixIcon: IconControl,
7373
suffixIcon: IconControl,
74+
field:styleControl(ComponentStyle)
7475
};
7576

7677
export const SliderPropertyView = (
@@ -101,6 +102,9 @@ export const SliderPropertyView = (
101102
<Section name={sectionNames.labelStyle}>
102103
{children.labelStyle.getPropertyView()}
103104
</Section>
105+
<Section name={sectionNames.field}>
106+
{children.field.getPropertyView()}
107+
</Section>
104108
</>
105109
)}
106110
</>

0 commit comments

Comments
 (0)