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

数字输入框输出为什么是字符串呢? #5

Open
LeetProgram opened this issue Jun 23, 2024 · 2 comments
Open

数字输入框输出为什么是字符串呢? #5

LeetProgram opened this issue Jun 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@LeetProgram
Copy link

这个需求解决了什么问题:

有很多数字输入框,一旦改动后输出变成字符串了,导致后端接口验证全部通不过,还得在前端或者后端手动转换成数字,这样做显得非常繁琐,数字输入框能否输出就是数字,不要转成字符串

建议的 API 是什么样的:

数字输入框输出的就是数字而不是字符串

是否已有其他不错的替代方案:

No response

@LeetProgram LeetProgram added the enhancement New feature or request label Jun 23, 2024
@xuliangzhan
Copy link
Collaborator

vxe-input输出只能string类型
vxe-number-input输出只能是number类型

@KaneLeung
Copy link

vxe-input输出只能string类型 vxe-number-input输出只能是number类型

文档中的数值输入也是使用vxe-input,估计是文档出错了
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants