Skip to content

Commit 51fb7cd

Browse files
authored
feat: tree support global tree slot (#2904)
1 parent caea1ac commit 51fb7cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/tree/Tree.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ export default {
161161
$slots[scopedSlots.switcherIcon] ||
162162
$slots[slots.switcherIcon] ||
163163
restProps.switcherIcon,
164-
title: $slots[scopedSlots.title] || $slots[slots.title] || restProps[replaceFields.title],
164+
title:
165+
$slots[scopedSlots.title] ||
166+
$slots[slots.title] ||
167+
$slots.title ||
168+
restProps[replaceFields.title],
165169
dataRef: item,
166170
key,
167171
class: cls,

0 commit comments

Comments
 (0)