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

为什么输入框自定义校验规则,怎么填写都是提示输入有问题 #41

Closed
YZBlankCanvas opened this issue Aug 22, 2022 · 6 comments

Comments

@YZBlankCanvas
Copy link

为什么输入框自定义校验规则,怎么填写都是提示输入有问题,比如我校验数字最大值是10,我输入多少,都提示我错了

@xaboy
Copy link
Owner

xaboy commented Aug 22, 2022

怎么设置的, 截图看看. 验证类型选的是 string 吗

@YZBlankCanvas
Copy link
Author

1661151778(1)
1661151758(1)
我选的number类型

@YZBlankCanvas
Copy link
Author

如果我选String类型,那就没有任何提示,好像没有进行校验一样

@xaboy
Copy link
Owner

xaboy commented Aug 22, 2022

input 的value 类型是 string 类型, 只能选 string. 输入数字建议用 inputNumber 组件

@YZBlankCanvas
Copy link
Author

好的,感谢

@tlxiaociwei
Copy link

自定义校验规则不生效 是哪里没配置对啊

@xaboy xaboy closed this as completed Jan 29, 2023
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

3 participants