Преглед изворни кода

Switch: fix a 'width' attribute init bug

Leopoldthecoder пре 8 година
родитељ
комит
9314ea2f28
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: {