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

ui-input-type value 是 string 引起的问题 #34

Closed
zhyq0826 opened this issue Mar 11, 2019 · 0 comments
Closed

ui-input-type value 是 string 引起的问题 #34

zhyq0826 opened this issue Mar 11, 2019 · 0 comments

Comments

@zhyq0826
Copy link
Member

在 ui-input 组件内更新 input value 值的时用的是 jQuery $().val() 这个方法无论 input 是什么类型都会返回 string,而且原生的 element 上提供了原生 valueAsNumber 和 valueAsDate 方法,所以为了让 input 返回正确的类型的值需要根据 type 来做判断

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

1 participant