修改 table 的行右键菜单事件命名

pull/1205/head
贤心 2023-02-20 00:15:33 +08:00
parent e9ddee165f
commit c7de1e0c73
1 changed files with 1 additions and 1 deletions

View File

@ -2159,7 +2159,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
setRowEvent.call(this, 'rowDouble');
}).on('contextmenu', 'tr', function(e){ //菜单
if (!options.defaultContextmenu) e.preventDefault();
setRowEvent.call(this, 'contextmenu');
setRowEvent.call(this, 'rowContextmenu');
});;
// 创建行单击、双击、菜单事件