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 组件的搜索功能,不仅仅对 Select.Option 的 value 属性进行搜索 #18919

Closed
1 task
Hansenleee opened this issue Sep 20, 2019 · 2 comments
Assignees
Labels

Comments

@Hansenleee
Copy link

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

What problem does this feature solve?

解决了 Select 组件的搜索功能,很多时候 Select.Option 的 value 会是 ID 字段,但是搜索内容应该会针对 name 字段

What does the proposed API look like?

可以给 Select 增加一个 API,searchField,代表要对哪个字段发起搜索

@woshiguabi
Copy link

参考文档:https://ant.design/components/select-cn/#Select-props
可以通过 optionFilterProp 来指定搜索的prop,或者自己实现filterOption

@ant-design-bot
Copy link
Contributor

Hello @Hansenleee, we use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

你好 @Hansenleee,Ant Design Issue 板块是用于 bug 反馈与需求讨论的地方。请勿询问如何使用的问题,你可以试着在 Stack Overflow 或者 Segment Fault 中提问(记得添加 antdreact 标签哦~)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants