mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
docs: 🎬 add InputNumber demo of using Intl.Numberformat
close #26223 close #19645
This commit is contained in:
parent
6d02b51ae1
commit
93c1614bcf
@ -9,10 +9,14 @@ title:
|
||||
|
||||
通过 `formatter` 格式化数字,以展示具有具体含义的数据,往往需要配合 `parser` 一起使用。
|
||||
|
||||
> 这里有一个更复杂的货币格式化输入框:[https://codesandbox.io/s/currency-wrapper-antd-input-3ynzo](https://codesandbox.io/s/currency-wrapper-antd-input-3ynzo)
|
||||
|
||||
## en-US
|
||||
|
||||
Display value within it's situation with `formatter`, and we usually use `parser` at the same time.
|
||||
|
||||
> Here is a Intl.NumberFormat InputNumber implementation: [https://codesandbox.io/s/currency-wrapper-antd-input-3ynzo](https://codesandbox.io/s/currency-wrapper-antd-input-3ynzo)
|
||||
|
||||
```jsx
|
||||
import { InputNumber } from 'antd';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user