mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 table 调整行内点击设置活动行的和执行事件的调用顺序
This commit is contained in:
parent
9f9c2a72eb
commit
f57f36199c
@ -2444,6 +2444,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
var othis = $(this);
|
||||
var td = othis.closest('td');
|
||||
var index = othis.parents('tr').eq(0).data('index');
|
||||
// 标记当前活动行
|
||||
that.setRowActive(index);
|
||||
|
||||
// 执行事件
|
||||
layui.event.call(
|
||||
this,
|
||||
@ -2456,8 +2459,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
}
|
||||
})
|
||||
);
|
||||
// 标记当前活动行
|
||||
that.setRowActive(index);
|
||||
};
|
||||
|
||||
// 行工具条单击事件
|
||||
|
Loading…
Reference in New Issue
Block a user