From 28aeea6f0b142ed68950a3738f7cf2c1581a7a5b Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 27 Nov 2020 13:35:19 +0800 Subject: [PATCH] fix: tree-select loop error --- 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 02a6ac1d8..f1cafc9fa 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.label(item)}; } if (!newTitle && slots.title && $slots[slots.title]) { - newTitle = $slots.title(item); + newTitle = <>{$slots.title(item)}; } const treeNodeProps = { ...item,