Explorar el Código

Switch: fix switch blinking in ssr (#10484)

* fixed #3800

https://github.com/ElemeFE/element/issues/3800 fixed

* Switch:fix switch will blink when render in server beause its default width is 0.
xhd hace 7 años
padre
commit
4fe040d928
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/switch/src/component.vue

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

@@ -58,7 +58,7 @@
       },
       width: {
         type: Number,
-        default: 0
+        default: 40
       },
       activeIconClass: {
         type: String,