You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
440 B
JavaScript
18 lines
440 B
JavaScript
var Tab = {
|
|
_handleZanTabChange(e) {
|
|
var dataset = e.currentTarget.dataset;
|
|
var componentId = dataset.componentId;
|
|
var selectedId = dataset.itemId;
|
|
var data = { componentId, selectedId };
|
|
|
|
console.info('[zan:tab:change]', data);
|
|
if (this.handleZanTabChange) {
|
|
this.handleZanTabChange(data);
|
|
} else {
|
|
console.warn('页面缺少 handleZanTabChange 回调函数');
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = Tab;
|