Browse Source

Merge pull request #1076 from Leopoldthecoder/switch-width

Switch: fix a 'width' attribute init bug
baiyaaaaa 8 năm trước cách đây
mục cha
commit
ddd4481eb0
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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: {