perf: remove card warning

pull/2682/head
tanjinzhou 2020-07-27 18:23:36 +08:00
parent dbac632fc3
commit 3ca47f078c
1 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ export default {
activeTabKey: PropTypes.string,
defaultActiveTabKey: PropTypes.string,
cover: PropTypes.any,
onTabChange: PropTypes.func,
},
setup() {
return {
@ -51,7 +52,7 @@ export default {
);
return actionList;
},
onTabChange(key) {
triggerTabChange(key) {
this.$emit('tabChange', key);
},
isContainGrid(obj = []) {
@ -150,7 +151,7 @@ export default {
? activeTabKey
: defaultActiveTabKey,
tabBarExtraContent,
onChange: this.onTabChange,
onChange: this.triggerTabChange,
class: `${prefixCls}-head-tabs`,
};