ViewUIPlus icon indicating copy to clipboard operation
ViewUIPlus copied to clipboard

[Bug Report]Select 组件远程搜索,输入删除至空的时候,remote-method不被触发。

Open leedorian opened this issue 3 years ago • 1 comments

Environment

macos, windows, chrome, safari, vue3

Reproduction link

https://run.iviewui.com/LJIH80rM

Steps to reproduce

select搜索输入几个字符,逐一删除,删除空的时候,remote-method不被触发。

What is expected?

删除空的时候remote-method也要被触发,否则官方文档的示例代码中的“if (query !== '') {” 有何意义?

What is actually happening?

select搜索输入几个字符,逐一删除,删除空的时候,remote-method不被触发。

leedorian avatar Sep 09 '22 08:09 leedorian

可以监听select的on-query-change事件,当搜索词改变时触发你的remote-method事件

13990841002 avatar May 24 '23 09:05 13990841002