From f35bafb88a06b09361b841e7cfa4ceffea8b4060 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Wed, 4 Aug 2021 22:54:58 +0800 Subject: [PATCH] fix(tree-select): wrong title slot (#4459) close #4457 --- components/tree-select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tree-select/index.tsx b/components/tree-select/index.tsx index 966c6fd2b..3c834933a 100644 --- a/components/tree-select/index.tsx +++ b/components/tree-select/index.tsx @@ -93,10 +93,10 @@ const TreeSelect = defineComponent({ let newLabel = typeof label === 'function' ? label() : label; let newTitle = typeof title === 'function' ? title() : title; if (!newLabel && slots.label && $slots[slots.label]) { - newLabel = <>{$slots.label(item)}; + newLabel = <>{$slots[slots.label](item)}; } if (!newTitle && slots.title && $slots[slots.title]) { - newTitle = <>{$slots.title(item)}; + newTitle = <>{$slots[slots.title](item)}; } const treeNodeProps = { ...item,