2023-10-24 14:54:18 +08:00

23 lines
612 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
@NametreeGrid树状表格
@Authorlrd
*/
layui.config({
base: '/statics/layuiadmin/'
}).extend({
dltable:'lib/extend/dltable'
}).define(['laytpl', 'laypage','dltable', 'layer', 'form'], function(exports){
"use strict";
var $ = layui.jquery;
var layer = layui.layer;
var dltable = layui.dltable;
var MOD_NAME='treeGrid';
var treeGrid=$.extend({},dltable);
treeGrid._render=treeGrid.render;
treeGrid.render=function(param){//重写渲染方法
param.isTree=true;//是树表格
treeGrid._render(param);
};
exports(MOD_NAME, treeGrid);
});