Skip to content

Commit 86f7a6b

Browse files
pdanpdanrstoenescu
authored andcommitted
closes quasarframework#1121: Add decimals prop for QSlider and QRange in dialog (quasarframework#1124)
1 parent 48e5df8 commit 86f7a6b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dev/components/global/dialog.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,17 @@ export default {
396396
model: 12,
397397
color: 'secondary'
398398
},
399+
slider2: {
400+
type: 'slider',
401+
label: 'Slider2',
402+
min: 0.01,
403+
max: 1,
404+
step: 0.01,
405+
decimals: 2,
406+
withLabel: true,
407+
model: 0.01,
408+
color: 'secondary'
409+
},
399410
range: {
400411
type: 'range',
401412
label: 'Range',

src/components/dialog/Dialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
:min="el.min"
5252
:max="el.max"
5353
:step="el.step"
54+
:decimals="el.decimals"
5455
:label="el.withLabel"
5556
:label-always="el.labelAlways"
5657
:markers="el.markers"

0 commit comments

Comments
 (0)