Browse Source

feat: tree support global tree slot (#2904)

pull/2927/head
zkwolf 4 years ago committed by GitHub
parent
commit
51fb7cd888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/tree/Tree.jsx

6
components/tree/Tree.jsx

@ -161,7 +161,11 @@ export default {
$slots[scopedSlots.switcherIcon] ||
$slots[slots.switcherIcon] ||
restProps.switcherIcon,
title: $slots[scopedSlots.title] || $slots[slots.title] || restProps[replaceFields.title],
title:
$slots[scopedSlots.title] ||
$slots[slots.title] ||
$slots.title ||
restProps[replaceFields.title],
dataRef: item,
key,
class: cls,

Loading…
Cancel
Save