fix(treetable): 修复 treeTable.updateNode() 更新已打开的节点时,未重新渲染表单元素的问题 (#1468)

close #1463
pull/1479/head
morning-star 11 months ago committed by GitHub
parent 780bd490fb
commit 1c177f2970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1037,6 +1037,10 @@ layui.define(['table'], function (exports) {
trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen); trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen);
expandNode({trElem: trDefaultExpand.first()}, true); expandNode({trElem: trDefaultExpand.first()}, true);
}); });
// #1463 expandNode 中已经展开过的节点不会重新渲染
debounceFn('renderTreeTable2-' + tableId, function () {
form.render($('.layui-table-tree[lay-id="' + tableId + '"]'));
}, 0)();
} else { } else {
debounceFn('renderTreeTable-' + tableId, function () { debounceFn('renderTreeTable-' + tableId, function () {
options.hasNumberCol && formatNumber(that); options.hasNumberCol && formatNumber(that);

Loading…
Cancel
Save