mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 08:33:12 +08:00
修复 treeTable 新增根节点时没有带选中状态的节点在初始化的时候报错的问题 (#1414)
Co-authored-by: sunxiaobin <sunxiaobin@kailashtech>
This commit is contained in:
@@ -1291,7 +1291,7 @@ layui.define(['table'], function (exports) {
|
||||
|
||||
// 若未传入 LAY_CHECKED 属性,则继承父节点的 checked 状态
|
||||
layui.each(newNodes, function(i, item){
|
||||
if(!(checkName in item)){
|
||||
if(!(checkName in item) && parentNode){
|
||||
item[checkName] = parentNode[checkName];
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user