|
@@ -1384,12 +1384,21 @@ const load = async (node) => {
|
|
|
type: prop.type
|
|
|
};
|
|
|
});
|
|
|
+
|
|
|
+ const checkable = children.length > 0;
|
|
|
+
|
|
|
iots.value.forEach((item)=>{
|
|
|
if(item.id===node.data.id){
|
|
|
item.children = children;
|
|
|
+ item.checkable = checkable
|
|
|
}
|
|
|
});
|
|
|
// iots.value = deepClone(iots.value);
|
|
|
+
|
|
|
+ iotTreeRef.value.setItem(node.value, {
|
|
|
+ checkable
|
|
|
+ })
|
|
|
+
|
|
|
return children;
|
|
|
}
|
|
|
|
|
@@ -1432,6 +1441,7 @@ const iotInputFocus = async ()=>{
|
|
|
type: prop.type
|
|
|
};
|
|
|
});
|
|
|
+ item.checkable = item.children.length > 0
|
|
|
flag = true;
|
|
|
}
|
|
|
}
|