mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
* add src dir && add build * add build watch && change dir name * bower ignore package.json
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;
|