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
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
老项目升级,ProFormDigit组件设置 precision=2, 输入多个小数点的数值, 输入框内值变为整数。
输入框内正常显示value值。
<ProForm.Group> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'USD'}} colProps={{ md: 12, xl: 8 }} name="exchange_US" label="美元汇率" /> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'JPY' }} colProps={{ md: 12, xl: 8 }} name="exchange_JP" label="日元汇率" /> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'KRW' }} colProps={{ md: 12, xl: 8 }} name="exchange_KR" label="韩元汇率" /> </ProForm.Group>
输入美元汇率 0.01时,展示 0.00 输入日元汇率20.50时,展示20.00
整错版本,升级后无此问题。
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
老项目升级,ProFormDigit组件设置 precision=2, 输入多个小数点的数值, 输入框内值变为整数。
🏞 期望结果
输入框内正常显示value值。
💻 复现代码
<ProForm.Group> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'USD'}} colProps={{ md: 12, xl: 8 }} name="exchange_US" label="美元汇率" /> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'JPY' }} colProps={{ md: 12, xl: 8 }} name="exchange_JP" label="日元汇率" /> <ProFormDigit fieldProps={{ precision: 2, addonAfter: 'KRW' }} colProps={{ md: 12, xl: 8 }} name="exchange_KR" label="韩元汇率" /> </ProForm.Group>
输入美元汇率 0.01时,展示 0.00
输入日元汇率20.50时,展示20.00
© 版本信息
🚑 其他信息
整错版本,升级后无此问题。
The text was updated successfully, but these errors were encountered: