fix(ui): slider number input field with limits (#2899)
- Added min, max, and step fields to the input field of a slider - Made the input field a number field to apply min, max, step, and accessibility
This commit is contained in:
parent
316fe72ea5
commit
82f81dc154
@ -41,9 +41,12 @@
|
|||||||
<input
|
<input
|
||||||
ref="value"
|
ref="value"
|
||||||
:value="currentValue"
|
:value="currentValue"
|
||||||
type="text"
|
type="number"
|
||||||
class="slider-input"
|
class="slider-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
:min="min"
|
||||||
|
:max="max"
|
||||||
|
:step="step"
|
||||||
@change="onInput(($event.target as HTMLInputElement).value)"
|
@change="onInput(($event.target as HTMLInputElement).value)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user