Currency
货币控件
Currency API
ICurrencyProps
| 参数 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| max | number | 最大值 | - |
| min | number | 最小值 | - |
| step | string | 步长 | - |
| digits | number | 精度 | - |
| unit | boolean | string | 单位 | - |
| showCurrency | boolean | 是否展示货币符号 | - |
| fullWidth | boolean | 是否铺满宽度 | - |
| currencyType | string | 单独指定货币单位 | - |
| format | string | 用于只读态的格式化,参考numeral.js文档 | - |
| unitInFront | boolean | 使用前缀方式显示货币单位 | false |
| style | React.CSSProperties | 自定义样式 | - |
RangeCurrency API
IRangeCurrencyProps
| 参数 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| digits | number | 精度 | - |
| unit | boolean | string | 单位 | - |
| max | number | 最大值 | - |
| min | number | 最小值 | - |