-
Beta Was this translation helpful? Give feedback.
Answered by
pointhalo
Jul 15, 2024
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
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
【清空同时清空搜索和选择】,这个只能由你实现,候选列表由你们控制,我们如果在某些交互下清空列表,就会造成多处input同时影响 optionList,会违背单一控制的原则,这个是不太合理的。你可以直接监听 onClear 然后 更新 optionList = [] 即可
你可以考虑通过 topSlot 自行再强调一下当前搜索关键字
或者 searchPosition 设为 dropdown,然后借助它的placeholder在未输入时,显示这个信息也可以