mirror of https://github.com/layui/layui
适配 `treeTable.expandNode()` 方法
parent
06982a5051
commit
743d5d63af
|
@ -1445,7 +1445,10 @@ layui.define(['table'], function (exports) {
|
|||
var trElem = tableView.find('tr[lay-data-index="' + dataIndex + '"]');
|
||||
if (!trElem.length) {
|
||||
// 如果还没有展开没有渲染的要先渲染出来
|
||||
treeTable.expandNode(id, nodeData[LAY_PARENT_INDEX], true);
|
||||
treeTable.expandNode(id, {
|
||||
index: nodeData[LAY_PARENT_INDEX],
|
||||
expandFlag: true
|
||||
});
|
||||
trElem = tableView.find('tr[lay-data-index="' + dataIndex + '"]');
|
||||
}
|
||||
checkNode.call(that, trElem, checked, callbackFlag);
|
||||
|
|
Loading…
Reference in New Issue