ant-design-vue
ant-design-vue copied to clipboard
Enter the emoji expression in the input input box, the showCount display is wrong
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.0
Environment
win10, Chrome104.0.5112.81, Vue3.2.25
Reproduction link
https://www.antdv.com/components/input-cn
Steps to reproduce
input输入emoji表情,并且显示计数(showCount)
What is expected?
一个emoji占2个字符,且一个emoji在计数上应该算2
What is actually happening?
一个emoji占2个字符,且一个emoji在计数上实际是1
就在ant官网组件示例里就能重现