Range
Install

Install


API

Props

nametypedefaultdescriptionrequired version
valuenumber0form value, use v-model for binding--
decimalbooleanfalseif show decimals when value is changed--
minnumber0min number--
maxnumber100max number--
stepnumber1step value--
disabledbooleanfalseif disabled--
minHTMLstringcustom html template for min value--
maxHTMLstringcustom html template for max value--
disabled-opacitynumberopacity value when is disabled--
rangeBarHeightnumber1range bar's height--

Events

nameparamsdescriptionrequired version
@on-change(value)emits when value is changedv2.2.2
@on-touchstart(event)trigger when finger is placed on elementv2.9.2
@on-touchend(event)trigger when finger leaves the elementv2.9.2
Variables

Variables

namedefaultdescriptioninherited name
@range-disabled-opacity 0.5 --@opacity-disabled
@range-bar-default-color #a9acb1 --
@range-bar-active-color #04BE02 --@theme-color


Contributors

Contributors

Total commits quantity: 17,Total contributors quantity: 3

airylandClay光君

Changelog

Releases

  • v2.9.2 [feature] add on-touchstart and on-touchend events #2804
  • v2.4.0 [fix] Fix the situation cannot drag to max value #1556
  • v2.2.2 [feature] Support dynamically setting step #1394