瀏覽代碼

Merge pull request #1076 from Leopoldthecoder/switch-width

Switch: fix a 'width' attribute init bug
baiyaaaaa 8 年之前
父節點
當前提交
ddd4481eb0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/switch/src/component.vue

+ 3 - 1
packages/switch/src/component.vue

@@ -81,7 +81,9 @@
       return {
         currentValue: this.value,
         coreWidth: this.width,
-        buttonStyle: {}
+        buttonStyle: {
+          transform: ''
+        }
       };
     },
     computed: {