Skip to content

Select远程搜索的选择列表和用户预期不同有什么好的解决办法吗? #2269

Answered by pointhalo
xmsz-stu asked this question in Q&A
Discussion options

You must be logged in to vote
  1. 【清空同时清空搜索和选择】,这个只能由你实现,候选列表由你们控制,我们如果在某些交互下清空列表,就会造成多处input同时影响 optionList,会违背单一控制的原则,这个是不太合理的。你可以直接监听 onClear 然后 更新 optionList = [] 即可

你可以考虑通过 topSlot 自行再强调一下当前搜索关键字

或者 searchPosition 设为 dropdown,然后借助它的placeholder在未输入时,显示这个信息也可以

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xmsz-stu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants