Kaynağa Gözat

Slider: fix an inputValue initiation bug (#879)

杨奕 8 yıl önce
ebeveyn
işleme
6f55d6d9af

+ 1 - 3
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>

+ 1 - 1
packages/theme-default/src/slider.css

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