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

datepicker的input最好设成readonly。 #137

Closed
ibufu opened this issue Sep 23, 2016 · 5 comments
Closed

datepicker的input最好设成readonly。 #137

ibufu opened this issue Sep 23, 2016 · 5 comments

Comments

@ibufu
Copy link
Contributor

ibufu commented Sep 23, 2016

一个小建议,datepicker的input最好设成readonly。因为现在在input里输东西会出现意想不到的事情。

@fishpaw
Copy link
Contributor

fishpaw commented Sep 23, 2016

@ibufu ,「可控」是 Element 的一大设计原则,所以我们对于 datepicker 的设计初衷,就是既能够方便地选择,也能够直接快捷地输入。但就目前的公开版本而言,输入体验做得确实不够好,这一点日后会进一步调校优化。

@henryzp
Copy link

henryzp commented Sep 23, 2016

@ibufu ,我个人觉得没有必要。。输东西,就让用户自己去输好了。在提交的时候,判断下是否为正确的日期格式即可。

@QingWei-Li
Copy link
Contributor

@henryzp 格式化每一次用户输入都会在 format,还有其实是可以输入

@ibufu
Copy link
Contributor Author

ibufu commented Sep 23, 2016

我也支持做成可输入的,只是现在输入后,组件会错误地设置成其它日期

@fashen007
Copy link

@ibufu 我都是自己设置成 readonly

hazel54 pushed a commit to hazel54/element that referenced this issue Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants