Skip to content

Commit c9f9dda

Browse files
authored
Merge pull request #1681 from lublak/patch-1
change the minimum of the slide control
2 parents 806428b + 18b0889 commit c9f9dda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const childrenMap = {
216216
disableCollision: valueComp<boolean>(false),
217217
lowcoderCompVersion: withDefault(StringControl, 'latest'),
218218
maxWidth: dropdownInputSimpleControl(OPTIONS, USER_DEFINE, "1920"),
219-
gridColumns: RangeControl.closed(8, 48, 24),
219+
gridColumns: RangeControl.closed(1, 48, 24),
220220
gridRowHeight: RangeControl.closed(4, 100, 8),
221221
gridRowCount: withDefault(NumberControl, DEFAULT_ROW_COUNT),
222222
gridPaddingX: withDefault(NumberControl, 20),

client/packages/lowcoder/src/comps/controls/sliderControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SliderControl extends SimpleComp<number> {
2020
<ControlPropertyViewWrapper {...params}>
2121
<Slider
2222
style={{ width: "90%", margin: "8px 5% 0 5%"}}
23-
min={8} // Define the minimum value for the slider
23+
min={1} // Define the minimum value for the slider
2424
max={48} // Define the maximum value for the slider
2525
value={this.value || 24}
2626
onChange={(value) => this.dispatchChangeValueAction(value)} // this.dispatchChangeValueAction(value)}

0 commit comments

Comments
 (0)