Explorar el Código

Fix table 'styleSheet' is undefined

qingwei.li hace 9 años
padre
commit
6975c481fe
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/table/src/table.vue

+ 1 - 0
packages/table/src/table.vue

@@ -196,6 +196,7 @@
         if (this.styleNode) {
           let styleSheet = this.styleNode.sheet;
 
+          if (!styleSheet) return;
           for (let i = 0, j = styleSheet.cssRules.length; i < j; i++) {
             styleSheet.deleteRule(0);
           }