修改 treeTable 部分方法的部分属性名

pull/1229/head
贤心 2 years ago
parent ee6038b82d
commit eb75338f14

@ -613,7 +613,7 @@ layui.define(['table'], function (exports) {
var index = opts.index;
var expandFlag = opts.expandFlag;
var sonSign = opts.sonSign;
var sonSign = opts.inherit;
var callbackFlag = opts.callbackFlag;
@ -1001,7 +1001,7 @@ layui.define(['table'], function (exports) {
* @param {String} id 树表id
* @param {String|Number} parentIndex 指定的父节点如果增加根节点请设置 parentIndex null 即可
* @param {Number} index:Number 新节点插入的位置 0 开始index = -1(默认) 插入到最后
* @param {Object|Array} newNodes 新增的节点单个或者多个
* @param {Object|Array} data 新增的节点单个或者多个
* @param {Boolean} focus 新增的节点单个或者多个
* @return {Array} 新增的节点
* */
@ -1017,7 +1017,7 @@ layui.define(['table'], function (exports) {
var parentIndex = opts.parentIndex;
var index = opts.index;
var newNodes = opts.newNodes;
var newNodes = opts.data;
var focus = opts.focus;
parentIndex = layui.type(parentIndex) === 'number' ? parentIndex.toString() : parentIndex;

Loading…
Cancel
Save