소스 검색

Slider: fix an inputValue initiation bug (#879)

杨奕 8 년 전
부모
커밋
6f55d6d9af
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 3
      packages/slider/src/main.vue
  2. 1 1
      packages/theme-default/src/slider.css

+ 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 {