fix:Tree scopedSlots icon no work (#1712)

pull/1731/head
biterabbit 5 years ago committed by tangjinzhou
parent a8e83b7241
commit e0d5f078f9

@ -166,7 +166,7 @@ export default {
...restProps, ...restProps,
icon: icon:
$slots[slots.icon] || $slots[slots.icon] ||
($scopedSlots[scopedSlots.icon] && $scopedSlots[scopedSlots.icon]) || ($scopedSlots[scopedSlots.icon] && $scopedSlots[scopedSlots.icon](item)) ||
restProps.icon, restProps.icon,
title: title:
$slots[slots.title] || $slots[slots.title] ||

Loading…
Cancel
Save