Skip to content

Commit 4851d10

Browse files
authored
fix bug tree select custom slot cann't use custom name (#2827)
1 parent 6e35cec commit 4851d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: components/tree-select/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ const TreeSelect = {
8181
let newLabel = typeof label === 'function' ? label(this.$createElement) : label;
8282
let newTitle = typeof title === 'function' ? title(this.$createElement) : title;
8383
if (!newLabel && scopedSlots.label && $scopedSlots[scopedSlots.label]) {
84-
newLabel = $scopedSlots.label(item);
84+
newLabel = $scopedSlots[scopedSlots.label](item);
8585
}
8686
if (!newTitle && scopedSlots.title && $scopedSlots[scopedSlots.title]) {
87-
newTitle = $scopedSlots.title(item);
87+
newTitle = $scopedSlots[scopedSlots.title](item);
8888
}
8989
const treeNodeProps = {
9090
...item,

0 commit comments

Comments
 (0)