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

[Document Request]: more introduction about autocomplete #68

Closed
yqnetwork opened this issue Apr 20, 2018 · 3 comments
Closed

[Document Request]: more introduction about autocomplete #68

yqnetwork opened this issue Apr 20, 2018 · 3 comments

Comments

@yqnetwork
Copy link

自动补全应该是treeselect重要的一个额外功能。不一定要是树形结构,也可以用作查询项。但是文档没有单独讲到。
我在用treeselect做autocomplete input的过程中,就遇到treeselect弹出面板的弹出项前面默认留了一个箭头的位置。实际上,autocomplete大多数情况只是一个数组,并不会有二级菜单,所以那个箭头就很难看。
所以,希望在文档中补充autocomplete案例,重视autocomplete功能。

@riophae
Copy link
Owner

riophae commented Apr 20, 2018

你好,我刚才想了下,准确地说 vue-treeselect 现有的功能不能算得上是 autocomplete,毕竟不支持方向键在选项间切换选择然后自动补全。我应该在介绍中去掉这一条。

关于箭头的问题,我也是觉得比较丑。刚刚想到了去掉的办法,接下来会做这一块的。但是只会处理一级菜单。只要存在二级选项,这个留空就会保留。

@yqnetwork
Copy link
Author

我保留autocomplete的意见。目前treeselect的工作量比较忙,autocomplete应该是照顾不上。但我觉得treeselect可以把输入功能概括进来。

箭头的问题,只处理第一级或者不处理都是妥当的。我当时是考虑作为autocomplete这种只有第一级的时候不需要箭头。

@riophae
Copy link
Owner

riophae commented May 13, 2018

刚刚发布了 v0.0.28,终于支持用键盘操作了,可以试一下

@riophae riophae closed this as completed Jul 4, 2018
matejlehotsky pushed a commit to tomasbarej/vue-treeselect that referenced this issue Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants