ant-design/components/input/demo/advance-count.md

8 lines
461 B
Markdown
Raw Normal View History

## zh-CN
在某些场景下,需要定制计数能力(例如 emoji 长度以 1 计算),可以通过 `count` 属性来实现。在该模式下,通过 `count.max` 属性来超出原生 `maxLength` 的限制。
## en-US
It is necessary to customize the counting ability in some scenarios (such as emoji length is counted as 1), which can be achieved through the `count` attribute. Use `count.max` attribute exceeds the limit of the native `maxLength`.