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

Select 选择器 dropdownRender slot 不生效了 #3098

Closed
1 task
niceue opened this issue Nov 3, 2020 · 2 comments
Closed
1 task

Select 选择器 dropdownRender slot 不生效了 #3098

niceue opened this issue Nov 3, 2020 · 2 comments
Labels

Comments

@niceue
Copy link

niceue commented Nov 3, 2020

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

Version

2.0.0-beta.13

Environment

win10, Chrome 78, vue3.0.2

Reproduction link

https://2x.antdv.com/components/select-cn/#components-select-demo-custom-dropdown

Steps to reproduce

官方文档案例已经出现问题

What is expected?

使用 dropdownRender 对下拉菜单进行自由扩展。

What is actually happening?

不生效

@niceue
Copy link
Author

niceue commented Nov 19, 2020

@tangjinzhou 直到最新版2.0.0-rc.1,还是不能 slot

代码如下:

<a-select v-model:value="value">
    <template #dropdownRender>
        <my-component />
    </template>
</a-select>

以上代码在 2.0.0-beta.10 才可以,后面版本都不行了

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

2 participants