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

数字输入框NumberField 支持调用数字键盘 #238

Closed
1 of 2 tasks
sunzhenglove opened this issue Jul 19, 2018 · 2 comments
Closed
1 of 2 tasks

数字输入框NumberField 支持调用数字键盘 #238

sunzhenglove opened this issue Jul 19, 2018 · 2 comments

Comments

@sunzhenglove
Copy link

sunzhenglove commented Jul 19, 2018

这是一个

  • 错误报告
  • 功能需求

SaltUI 版本 3.9.2

浏览器、操作系统等环境信息

ios钉钉内置环境开发,非浏览器

复现步骤

  • 希望可以支持参数定义来支持是否调用数字键盘,这样输入手机号、金额、数量就会很方便用户。
@LiangZugeng
Copy link
Contributor

我们之前也在研究如何可以调用iOS的数字键盘,如果是浏览器应用,iOS是没有办法指定纯数字键盘的。 @sunzhenglove 你说非浏览器是什么意思?SaltUI只能运行在浏览器环境,不能用于Native app啊。

eternalsky added a commit that referenced this issue Oct 18, 2018
@eternalsky
Copy link
Contributor

目前使用 tel 和 number 都不合适,tel ios 下没有小数点, number 要求 value 是 number 影响格式化,故不做强制呼起数字键盘的操作,但通过过滤的方式,过滤掉不能够输入的字符,简化校验的过程。

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