From e0ce2527a80739f2943c3bcea0acca44984290e4 Mon Sep 17 00:00:00 2001 From: ZhangMJ <295692590@qq.com> Date: Mon, 23 Sep 2019 16:35:26 +0800 Subject: [PATCH] fix: #6279 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关于tabs嵌套,通过判断是否为子节点来避免错乱 --- src/components/tabs/tabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index ed816aa1..4341c306 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -217,7 +217,7 @@ if (item.tab === this.name) { TabPanes.push(item); } - } else { + } else if (this.$children.indexOf(item) !== -1) { TabPanes.push(item); } });