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

请教xinput里面is-type自定义函数检测输入内容问题 #2009

Closed
mitboy1983 opened this issue Sep 19, 2017 · 3 comments
Closed

请教xinput里面is-type自定义函数检测输入内容问题 #2009

mitboy1983 opened this issue Sep 19, 2017 · 3 comments

Comments

@mitboy1983
Copy link

xinput表单验证里面 is-type 看文档可以自己定义函数来检测输入的内容是否满足要求,例子里面写的 be2333 这个 返回 return {valid:false, msg:错误信息}, 想请教一下 这个 msg 的 错误信息 怎么显示?
我看例子demo 输入内容不合要求的 只有一个 红色的 icon 在右边,如何给出合理的错误提示呢?

@airyland
Copy link
Owner

就现在的 UI 来说错误提示不大适合放在 cell 里,placeholder 上加个提示应该基本能让用户理解吧,最终怎么做合理可能得咨询你们设计了,业务不同这里的考虑也不一样吧。

@airyland
Copy link
Owner

在 v2.6.3 优化了下,点击右侧错误图标会 toast 一个错误信息。

@YikaJ
Copy link

YikaJ commented Oct 25, 2017

错误提示对齐 we-ui 的话,应该不是一个 Toast,这里有官方的错误提示。https://weui.io/#input
image

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

3 participants