From 6f55d6d9af8cfb24195af72da9490a744fcefd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= <Leopoldthecoder@users.noreply.github.com> Date: Mon, 7 Nov 2016 16:25:27 +0800 Subject: [PATCH] Slider: fix an inputValue initiation bug (#879) --- packages/slider/src/main.vue | 4 +--- packages/theme-default/src/slider.css | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/slider/src/main.vue b/packages/slider/src/main.vue index b06d1e122..3e34a9268 100644 --- a/packages/slider/src/main.vue +++ b/packages/slider/src/main.vue @@ -223,9 +223,7 @@ } else if (this.value > this.max) { this.$emit('input', this.max); } - this.$nextTick(() => { - this.inputValue = this.inputValue || this.value; - }); + this.inputValue = this.inputValue || this.value; } }; </script> diff --git a/packages/theme-default/src/slider.css b/packages/theme-default/src/slider.css index f8141892c..5c1e9f946 100644 --- a/packages/theme-default/src/slider.css +++ b/packages/theme-default/src/slider.css @@ -60,7 +60,7 @@ @e input { float: right; - margin-top: 7px; + margin-top: 3px; } @e bar {