优化 table 行事件相关代码处注释

pull/1253/head
贤心 2023-05-14 20:30:44 +08:00
parent 4bf2fccafc
commit 26063fbaf4
1 changed files with 8 additions and 8 deletions

View File

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