ant-design/components/input/demo/advance-count.md
二货爱吃白萝卜 6af1d95cf4
feat: Input & TextArea support count ()
* docs: init

* chore: update example

* test: update test

* docs: update doc

* chore: fix lint

* chore: update limit
2023-10-10 16:22:23 +08:00

461 B

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.