Browse Source

优化 table 局部代码排版

pull/1287/head
贤心 1 year ago
parent
commit
7eef6ea99c
  1. 12
      src/modules/table.js

12
src/modules/table.js

@ -1809,13 +1809,13 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
var _BODY = $('body');
var dict = {};
// 工具栏操作事件
// 头部工具栏操作事件
that.layTool.on('click', '*[lay-event]', function(e){
var othis = $(this)
,events = othis.attr('lay-event')
,openPanel = function(sets){
var list = $(sets.list)
,panel = $('<ul class="' + ELEM_TOOL_PANEL + '"></ul>');
var othis = $(this);
var events = othis.attr('lay-event');
var openPanel = function(sets){
var list = $(sets.list);
var panel = $('<ul class="' + ELEM_TOOL_PANEL + '"></ul>');
panel.html(list);

Loading…
Cancel
Save