fix: disabled tabPane can be actived #3575 (#3577)

pull/3598/head
zkwolf 2021-01-23 16:18:04 +08:00 committed by GitHub
parent d275d2c6a3
commit 20b53a91d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {