Skip to content

Commit

Permalink
fix bug tree select custom slot cann't use custom name (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
tengfei8382 authored Sep 17, 2020
1 parent 6e35cec commit 4851d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tree-select/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4851d10

Please sign in to comment.