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

selector组件是否可以让用户手动输入? #1792

Closed
cinos1 opened this issue Aug 3, 2017 · 1 comment
Closed

selector组件是否可以让用户手动输入? #1792

cinos1 opened this issue Aug 3, 2017 · 1 comment

Comments

@cinos1
Copy link

cinos1 commented Aug 3, 2017

我现在的需求是想让用户选择一些常用的地址,如不存在则让用户手动输入,不知是否可以通过selector来支持,谢谢

@airyland
Copy link
Owner

airyland commented Aug 3, 2017

不会在 selector 里增加输入,毕竟加一个输入框把组件变太复杂了。

建议这样处理:selector 项可以有一项为 手动输入,监听 on-change 事件,选择这一项时,你把手动输入的 x-input 显示出来就行了,或者显示一个 confirm 来输入。

考虑你说的是地址信息,那么其实一个 x-input 也是满足不了需求的。

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