提交 5a20df45 编写于 作者: 无木

feat(tree): add `insertNodesByKey` method

上级 d52b0de8
......@@ -97,8 +97,7 @@
},
onRightClick: handleRightClick,
};
propsData = omit(propsData, 'treeData', 'class');
return propsData;
return omit(propsData, 'treeData', 'class');
});
const getTreeData = computed((): TreeItem[] =>
......@@ -109,8 +108,14 @@
return searchState.startSearch && searchState.searchData?.length === 0;
});
const { deleteNodeByKey, insertNodeByKey, filterByLevel, updateNodeByKey, getAllKeys } =
useTree(treeDataRef, getReplaceFields);
const {
deleteNodeByKey,
insertNodeByKey,
insertNodesByKey,
filterByLevel,
updateNodeByKey,
getAllKeys,
} = useTree(treeDataRef, getReplaceFields);
function getIcon(params: Recordable, icon?: string) {
if (!icon) {
......@@ -267,6 +272,7 @@
setCheckedKeys,
getCheckedKeys,
insertNodeByKey,
insertNodesByKey,
deleteNodeByKey,
updateNodeByKey,
checkAll,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册