实现添加点击事件的方法:
在初始化方法添加:
/**
* 给没有tap事件的控件添加tap事件
*/
addTapEvent : function(component) {
component.element.on('tap', function(e, t) {
component.fireEvent('tap', component, e, t);
}, component);
},
在初始化方法添加:
initialize : 'addTapEvent',
tap : "onDistributorNameTFTap"