Browse Source

fix(tabs): whitespace children bug (#1599)

fix whitespace children bug when vue.config.compilerOptions.whitespace = 'preserve'
Youngsun 3 years ago
parent
commit
1a20611c87
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/packages/__VUE/tabs/common.ts

+ 3 - 0
src/packages/__VUE/tabs/common.ts

@@ -79,6 +79,9 @@ export const component = {
           }
           titles.value.push(title);
         } else {
+          if (vnode.children == ' ') {
+            return;
+          }
           renderTitles(vnode.children as VNode[]);
         }
       });