|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|