perf: remove card warning
parent
dbac632fc3
commit
3ca47f078c
|
@ -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`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue