From 20b53a91d31c7ae5f5e786b5cab147ce308813d6 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Sat, 23 Jan 2021 16:18:04 +0800 Subject: [PATCH] fix: disabled tabPane can be actived #3575 (#3577) --- components/vc-tabs/src/Tabs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-tabs/src/Tabs.jsx b/components/vc-tabs/src/Tabs.jsx index 8c66e3a05..638e4c5ed 100644 --- a/components/vc-tabs/src/Tabs.jsx +++ b/components/vc-tabs/src/Tabs.jsx @@ -146,7 +146,7 @@ export default defineComponent({ const activeKey = this.state._activeKey; const children = []; this.$props.children.forEach(c => { - if (c && !c.disabled && c.disabled !== '') { + if (c && !c.props?.disabled && c.props?.disabled !== '') { if (next) { children.push(c); } else {