Explorar o código

Fix table 'styleSheet' is undefined

qingwei.li %!s(int64=9) %!d(string=hai) anos
pai
achega
6975c481fe
Modificáronse 1 ficheiros con 1 adicións e 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);
           }