// 切换tabs获取tabs的name
handleClick(tab, event) {
console.log(tab, event);
let beforeTabId = event.target.getAttribute('id');
let tabId = beforeTabId.split('-')[1];
console.log(tabId);
this.tabSelectId = tabId;
}
或者
// tab页面切换
bighandleClick(val) {
console.log(val);
console.log(val.name);
this.tabSelectId = val.name;
console.log(this.tabSelectId);
}
tab页面切换时获取tab的name
最新推荐文章于 2024-07-26 10:18:12 发布