关于tabs嵌套,通过判断是否为子节点来避免错乱
This commit is contained in:
ZhangMJ 2019-09-23 16:35:26 +08:00 committed by GitHub
parent 27f01b36a4
commit e0ce2527a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@
if (item.tab === this.name) { if (item.tab === this.name) {
TabPanes.push(item); TabPanes.push(item);
} }
} else { } else if (this.$children.indexOf(item) !== -1) {
TabPanes.push(item); TabPanes.push(item);
} }
}); });