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

✨ [Feature]: IndexBar.indexList支持传入节点 #647

Open
AdonLee opened this issue May 30, 2023 · 1 comment
Open

✨ [Feature]: IndexBar.indexList支持传入节点 #647

AdonLee opened this issue May 30, 2023 · 1 comment
Labels
🧑‍🚀 enhance New feature or request 🙋 pr welcome Welcome pr for this feature!

Comments

@AdonLee
Copy link
Contributor

AdonLee commented May 30, 2023

What is the new or updated feature that you are suggesting?

IndexBar.indexList支持传入节点, 例如把Array<number | string>扩展为Array<number | string | {index: number | string, label: ReactNode}>, 将索引值和具体展示分开

Why should this feature be included?

有时候index会是一个短句,为了保持一致性,index会用一个icon代替, 参考携程国际版的国际电话区号选择

@3lang3
Copy link
Owner

3lang3 commented Jun 1, 2023

当前 IndexBaritemRender 属性应该能完成需求,至于拓展接口近期没有计划(忙不过来🥹)

@3lang3 3lang3 added 🧑‍🚀 enhance New feature or request 🙋 pr welcome Welcome pr for this feature! labels Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍🚀 enhance New feature or request 🙋 pr welcome Welcome pr for this feature!
Projects
None yet
Development

No branches or pull requests

2 participants