[修复] 当表头设置 event 属性时,导致单元格内 a 标签跳转失效的问题

This commit is contained in:
贤心 2022-07-23 21:31:28 +08:00
parent de2faf7011
commit 4ca31ebf7e

View File

@ -2057,12 +2057,12 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
}; };
// 行工具条单击事件 // 行工具条单击事件
that.layBody.on('click', '*[lay-event]', function(){ that.layBody.on('click', '*[lay-event]', function(e){
toolFn.call(this); toolFn.call(this);
return false; layui.stope(e);
}).on('dblclick', '*[lay-event]', function(){ //行工具条双击事件 }).on('dblclick', '*[lay-event]', function(e){ //行工具条双击事件
toolFn.call(this, 'toolDouble'); toolFn.call(this, 'toolDouble');
return false; layui.stope(e);
}); });
//同步滚动条 //同步滚动条