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