view-design / ViewUIPlus

An enterprise-level UI component library and front-end solution based on Vue.js 3
https://www.iviewui.com
Other
377 stars 131 forks source link

[Feature Request]Select组件新增reserve-keyword属性 #351

Open szcr2012git opened 8 months ago

szcr2012git commented 8 months ago

What problem does this feature solve?

场景:使用Select组件(开启多选及搜索)且选择项很多的时候。输入搜索关键字,选中一个选择项后,搜索关键字被清空,需再次输入关键字。

带来的问题:用户需反复输入关键字,每次只能触发选择一个选项,增加用户操作次数,体验不好。且其他竞品组件库基本有解决方案。

What does the proposed API look like?

Select组件新增reserve-keyword属性(参数为Boolean,默认为false):当多选且可搜索时,支持配置在选中一个选项后是否保留当前的搜索关键词

如: <Select v-model="model13" filterable reserve-keyword multiple