Преглед на файлове

Tabs: fix empty tab-pane issue, fixed #1608 (#1672)

杨奕 преди 8 години
родител
ревизия
1db2d64ddc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/tabs/src/tabs.vue

+ 1 - 1
packages/tabs/src/tabs.vue

@@ -82,7 +82,7 @@
       }
     },
     mounted() {
-      this.currentName = this.activeName || this.$children[0].index || '1';
+      this.currentName = this.activeName || this.$children[0] && this.$children[0].index || '1';
       this.$nextTick(() => {
         this.$forceUpdate();
       });