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

1.2.6版本NumberBox 步进器无法减到0 #23

Closed
Tokinx opened this issue May 18, 2020 · 2 comments
Closed

1.2.6版本NumberBox 步进器无法减到0 #23

Tokinx opened this issue May 18, 2020 · 2 comments

Comments

@Tokinx
Copy link

Tokinx commented May 18, 2020

版本:1.2.6
组件:NumberBox
问题:无法通过+、-将数字减到0;1.2.5版本正常
原因:
1.2.6版判断为:let tmp = /(^\d+$)/.test(v1) && String(v1)[0] != 0;
1.2.5版本判断为:let tmp = /(^\d+$)/.test(v1) && value[0] != 0;

@Tokinx
Copy link
Author

Tokinx commented May 18, 2020

let tmp = /(^\d+$)/.test(v1) && (String(v1).length < 2 || String(v1)[0] != 0);
改成这样不置可否,判断下输入的值是1位数还是多位数应该行吧?
期待下个版本修复这个问题

@YanxinNet
Copy link
Collaborator

1.3.0已修正此问题,感谢反馈,欢迎更新新版本。

@Tokinx Tokinx closed this as completed Jun 10, 2020
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

2 participants