Yao ce5559a57e
[improvement] 部分组件边框实现修改 (#87)
* 使用超细边框

* 部分组件切换为 hairline

* 文档 边框替换
2017-12-23 14:25:41 +08:00

20 lines
511 B
JavaScript

const { extractComponentId } = require('../common/helper');
var Tab = {
_handleZanTabChange(e) {
const componentId = extractComponentId(e);
const dataset = e.currentTarget.dataset;
const selectedId = dataset.itemId;
const data = { componentId, selectedId };
console.info('[zan:tab:change]', data);
if (this.handleZanTabChange) {
this.handleZanTabChange(data);
} else {
console.warn('页面缺少 handleZanTabChange 回调函数');
}
}
};
module.exports = Tab;