From 4851d10f60d9ceffca45c058a9e688aa2140604b Mon Sep 17 00:00:00 2001 From: Fei Teng <361244985@qq.com> Date: Thu, 17 Sep 2020 16:33:47 +0800 Subject: [PATCH] fix bug tree select custom slot cann't use custom name (#2827) --- components/tree-select/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tree-select/index.jsx b/components/tree-select/index.jsx index 7d91ffe867..d2bd101610 100644 --- a/components/tree-select/index.jsx +++ b/components/tree-select/index.jsx @@ -81,10 +81,10 @@ const TreeSelect = { let newLabel = typeof label === 'function' ? label(this.$createElement) : label; let newTitle = typeof title === 'function' ? title(this.$createElement) : title; if (!newLabel && scopedSlots.label && $scopedSlots[scopedSlots.label]) { - newLabel = $scopedSlots.label(item); + newLabel = $scopedSlots[scopedSlots.label](item); } if (!newTitle && scopedSlots.title && $scopedSlots[scopedSlots.title]) { - newTitle = $scopedSlots.title(item); + newTitle = $scopedSlots[scopedSlots.title](item); } const treeNodeProps = { ...item,