2017-01-24 56 views
0

我需要货币金额输入。有没有办法自定义InputNumber来支持像逗号(',')或$?货币输入的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> 

回答