Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
tengfei8382 opened this issue Sep 10, 2020 · 3 comments
Labels

Comments

@tengfei8382
Copy link

  • 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

@enhezzz
Copy link

enhezzz commented Sep 10, 2020

like a bug...

@YiXing170
Copy link

YiXing170 commented Dec 14, 2020

这个我翻源码看了下,首先确保数据中不要有title属性,然后添加scopedSlots: { title: 'title' },注意插槽名字必须为title,
这个问题已经修复了,如果你的版本有问题就按照我说的做吧。

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants