Slider: fix an inputValue initiation bug (#879)

pull/884/head
杨奕 2016-11-07 16:25:27 +08:00 committed by FuryBean
parent e2c388fcf9
commit 6f55d6d9af
2 changed files with 2 additions and 4 deletions

View File

@ -223,9 +223,7 @@
} else if (this.value > this.max) { } else if (this.value > this.max) {
this.$emit('input', this.max); this.$emit('input', this.max);
} }
this.$nextTick(() => { this.inputValue = this.inputValue || this.value;
this.inputValue = this.inputValue || this.value;
});
} }
}; };
</script> </script>

View File

@ -60,7 +60,7 @@
@e input { @e input {
float: right; float: right;
margin-top: 7px; margin-top: 3px;
} }
@e bar { @e bar {