Skip to content

TreeSelect组件中,treeNode配置scopedSlots: {title: 'xxx' },当title使用自定义命名时,scopedSlots报错 #2826

@tengfei8382

Description

@tengfei8382
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.5

Environment

windows 10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 在treeNode数据中使用自定义插槽 scopedSlots ,并将其定义为{title: 'customTilte'}
  2. 在tree-select中添加 名为 customTiltle的插槽

What is expected?

正常渲染customTiltle的结果

What is actually happening?

组件报错,$scopedSlots.title is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions