修复 treeTable 行内菜单事件中参数没有加工的问题

pull/1247/head
sunxiaobin89 2023-05-03 19:01:25 +08:00
parent 075cca611b
commit b7760e3055
1 changed files with 12 additions and 1 deletions

View File

@ -1284,13 +1284,24 @@ layui.define(['table'], function (exports) {
} }
}) })
// 菜单
treeTable.on('rowContextmenu', function (obj) {
var options = obj.config;
var tableView = options.elem.next();
var tableId = options.id;
if (tableView.hasClass(TABLE_TREE)) {
updateObjParams(obj);
}
})
// tr中带lay-event节点点击 // tr中带lay-event节点点击
treeTable.on('tool', function (obj) { treeTable.on('tool', function (obj) {
var options = obj.config; var options = obj.config;
var tableView = options.elem.next(); var tableView = options.elem.next();
var tableId = options.id; var tableId = options.id;
if (tableView.hasClass('layui-table-tree')) { if (tableView.hasClass(TABLE_TREE)) {
updateObjParams(obj); updateObjParams(obj);
} }
}) })