Commit 69745a3c923d50481d44a59a389db6e8bc44d59f

Authored by 梁灏
1 parent 4a12cdd2

Update slider.vue

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
src/components/slider/slider.vue
... ... @@ -252,8 +252,14 @@
252 252 tipDisabled () {
253 253 return this.tipFormat(this.currentValue[0]) === null || this.showTip === 'never';
254 254 },
255   - valueRange(){
  255 + valueRange () {
256 256 return this.max - this.min;
  257 + },
  258 + firstPosition () {
  259 + return this.currentValue[0];
  260 + },
  261 + secondPosition () {
  262 + return this.currentValue[1];
257 263 }
258 264 },
259 265 methods: {
... ...