Skip to content

Commit

Permalink
fix:Tree scopedSlots icon no work (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
biterabbit authored and tangjinzhou committed Jan 13, 2020
1 parent a8e83b7 commit e0d5f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/Tree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
...restProps,
icon:
$slots[slots.icon] ||
($scopedSlots[scopedSlots.icon] && $scopedSlots[scopedSlots.icon]) ||
($scopedSlots[scopedSlots.icon] && $scopedSlots[scopedSlots.icon](item)) ||
restProps.icon,
title:
$slots[slots.title] ||
Expand Down

0 comments on commit e0d5f07

Please sign in to comment.