|
@@ -95,6 +95,10 @@
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
|
|
+ value(val) {
|
|
|
|
+ this.currentValue = val;
|
|
|
|
+ },
|
|
|
|
+
|
|
currentValue(newVal, oldVal) {
|
|
currentValue(newVal, oldVal) {
|
|
if (!isNaN(newVal) && newVal <= this.max && newVal >= this.min) {
|
|
if (!isNaN(newVal) && newVal <= this.max && newVal >= this.min) {
|
|
this.$emit('change', newVal);
|
|
this.$emit('change', newVal);
|