diff --git a/components/vc-tree/TreeNode.tsx b/components/vc-tree/TreeNode.tsx index 18b6d8840..85a26d095 100644 --- a/components/vc-tree/TreeNode.tsx +++ b/components/vc-tree/TreeNode.tsx @@ -393,7 +393,7 @@ export default defineComponent({ icon: treeIcon, draggable, loadData, - slots: contextSlots, + // slots: contextSlots, } = context.value; const disabled = isDisabled.value; const mergedDraggable = typeof draggable === 'function' ? draggable(data) : draggable; @@ -421,8 +421,8 @@ export default defineComponent({ let titleNode: any; if (typeof title === 'function') { titleNode = title(renderArgsData.value); - } else if (contextSlots.valuetitleRender) { - titleNode = contextSlots.valuetitleRender(renderArgsData.value); + // } else if (contextSlots.titleRender) { + // titleNode = contextSlots.titleRender(renderArgsData.value); } else { titleNode = title; }