feat: tree support global tree slot (#2904)

pull/2927/head
zkwolf 2020-09-29 22:09:29 +08:00 committed by GitHub
parent caea1acfbe
commit 51fb7cd888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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,