update Slider
update Slider
This commit is contained in:
parent
3ad47566a4
commit
d170399368
2 changed files with 19 additions and 6 deletions
|
@ -291,6 +291,7 @@
|
|||
if (!this.dragging) {
|
||||
if (this.value !== this.oldSingleValue) {
|
||||
this.$emit('on-change', this.value);
|
||||
this.$dispatch('on-form-change', this.value);
|
||||
this.oldSingleValue = this.value;
|
||||
}
|
||||
}
|
||||
|
@ -303,6 +304,7 @@
|
|||
this.value = val;
|
||||
this.setSinglePosition(val);
|
||||
this.$emit('on-change', this.value);
|
||||
this.$dispatch('on-form-change', this.value);
|
||||
},
|
||||
// for range use first
|
||||
onFirstButtonDown (event) {
|
||||
|
@ -345,6 +347,7 @@
|
|||
if (!this.firstDragging) {
|
||||
if (this.value[0] !== this.oldFirstValue) {
|
||||
this.$emit('on-change', this.value);
|
||||
this.$dispatch('on-form-change', this.value);
|
||||
this.oldFirstValue = this.value[0];
|
||||
}
|
||||
}
|
||||
|
@ -394,6 +397,7 @@
|
|||
if (!this.secondDragging) {
|
||||
if (this.value[1] !== this.oldSecondValue) {
|
||||
this.$emit('on-change', this.value);
|
||||
this.$dispatch('on-form-change', this.value);
|
||||
this.oldSecondValue = this.value[1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue