我需要输入货币金额。无论如何自定义 InputNumber 以支持逗号(',')或 $ 之类的东西?
类似于这些:
http://leonardowf.github.io/react-simple-currency/
https://github.com/jsillitoe/react-currency-input
我现在正在使用表单和 InputNumber,但是如果没有至少每千个逗号,就很难(对于用户)阅读:
<Col span='24'>
<FormItem label='Original Investment'>
{getFieldDecorator('originalInvestment', {
rules: [{ required: true, message: 'Please input your Investment!' }],
initialValue: 100000000
})(
<InputNumber min={100000000} max={10000000000} />
)}
</FormItem>
</Col>