Vue-slider-component: Min-Max value with custom data

Created on 17 May 2017  路  6Comments  路  Source: NightCatSama/vue-slider-component

If i use custom data, even though i use numbers in string, min and max value works...
i use this workaround

...
data: ["2017", "2016", "2015","2014"],
min: -9999,
max: 9999
....

There is any solution ?

bug

All 6 comments

When using custom data, min and max are invalid.

If you want to switch between the two modes, you can set :data="undefined".

e.g.

<vue-slider :data="data" :min="-999" :max="999" v-model="val"></vue-slider>
<button @click="switchNumberMode">switch mode</button>
switchNumberMode () {
  this.data = undefined
  this.val = 200
}

This issue has been fixed in version2.2.8.

thank you for your help.

@NightCatSama ok, I tried 2.2.8 and it works but ... can you remove now console.log? 馃槄

@exodusanto i'm sorry, i forget it.:sweat_smile:

Please upgrade to v2.2.9. :grin:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isaacjoy picture isaacjoy  路  4Comments

bogdan1190 picture bogdan1190  路  5Comments

yusupprog picture yusupprog  路  5Comments

senner007 picture senner007  路  5Comments

ericdrobinson picture ericdrobinson  路  4Comments