Browse Source

Switch: fix a 'width' attribute init bug

Leopoldthecoder 8 years ago
parent
commit
9314ea2f28
1 changed files with 3 additions and 1 deletions
  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: {