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

tagRender和maxTagCount同时使用时 +2... tag 无法 使用 tagRender #32072

Open
1 task
chen-jingjie opened this issue Sep 7, 2021 · 3 comments
Open
1 task

Comments

@chen-jingjie
Copy link
Contributor

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

如上
image

What is expected?

tagRender和maxTagCount同时使用时 2... tag 能够使用 tagRender

What is actually happening?

tagRender和maxTagCount同时使用时 2... tag 无法 使用 tagRender

Environment Info
antd 4.16.13
React 16.14.0
System macOS Big Sur 版本 11.2.1
Browser 92.0.4515.131(正式版本) (x86_64)
@chen-jingjie chen-jingjie changed the title tagRender和maxTagCount同时使用时 2... tag 无法 使用 tagRender tagRender和maxTagCount同时使用时 +2... tag 无法 使用 tagRender Sep 7, 2021
@zombieJ zombieJ added the 🐛 Bug Ant Design Team had proved that this is a bug. label Sep 8, 2021
@Dreamerryao
Copy link
Contributor

Dreamerryao commented Sep 9, 2021

可是如果+1...使用了tagRender,你期待它以哪种颜色渲染呢,考虑普通标签和隐藏标签的props的区别,建议增加一个新的props: extraTagRender来实现隐藏标签的自定义渲染功能, @zombieJ 我认为这并不是一个bug,而是一个新的需求,如果要添加这个功能应该在rc-select中完成并升级antd中的相关依赖

@chen-jingjie
Copy link
Contributor Author

是的,将它作为新的需求也说的通。我核心诉求是 select 里面的 tag 都能被自定义,这样才能使风格统一。至于他以何种颜色来渲染这属于业务逻辑,组件提供自定义渲染能力就行了。辛苦了。

@zombieJ
Copy link
Member

zombieJ commented Sep 14, 2021

嗯,看了一下的确两个 render 也不太好复用。

@zombieJ zombieJ added 💡 Feature Request and removed 🐛 Bug Ant Design Team had proved that this is a bug. labels Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants