We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.2.6
浏览器版本
https://antdv.com/components/input-number-cn
修复a-input-number组件展示错误
The text was updated successfully, but these errors were encountered:
我试了下,的确有这个问题。看了下代码 getDecimalValue这个方法里的decimalValue.toNumber()操作导致的数值变化,可以配置stringMode: true,这样就不会出现以上问题。
const getDecimalValue = (stringMode: boolean, decimalValue: DecimalClass) => { if (stringMode || decimalValue.isEmpty()) { return decimalValue.toString(); } return decimalValue.toNumber(); // 这个方法会把 11111111111111111 转换为 11111111111111112 };
Sorry, something went wrong.
No branches or pull requests
Version
4.2.6
Environment
浏览器版本
Reproduction link
https://antdv.com/components/input-number-cn
Steps to reproduce
官方文档及项目中使用当输入超出17位会发生一些不符合预期展示What is expected?
修复a-input-number组件展示错误
What is actually happening?
官方文档及项目中使用当输入超出17位会发生一些不符合预期展示The text was updated successfully, but these errors were encountered: