Преглед на файлове

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