Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input 中的 show-count 可以考虑支持传入一个function来自定义显示字数统计逻辑 #1314

Closed
Adangs opened this issue Oct 10, 2021 · 5 comments
Labels
feature request New feature or request priority: high

Comments

@Adangs
Copy link
Contributor

Adangs commented Oct 10, 2021

This function solves the problem (这个功能解决的问题)

常用的案例:中文计1个长度,英文计0.5个长度;右下角还可以自定义组合文案展示内容

Expected API (期望的 API)

无参考
但中英文区分计数在实际开发过程中很常见;
还有一些特殊场景,比如:[微笑],计一个长度;

@github-actions github-actions bot added the feature request New feature or request label Oct 10, 2021
@07akioni
Copy link
Collaborator

This function solves the problem (这个功能解决的问题)

常用的案例:中文计1个长度,英文计0.5个长度;右下角还可以自定义组合文案展示内容

Expected API (期望的 API)

无参考 但中英文区分计数在实际开发过程中很常见; 还有一些特殊场景,比如:[微笑],计一个长度;

我感觉很有道理,安排 @Talljack

@07akioni
Copy link
Collaborator

最后还是得自己做= =...

@Adangs
Copy link
Contributor Author

Adangs commented Oct 26, 2021

最后还是得自己做= =...

哈哈哈,挺好用的;

但是好像只支持 type="textarea" 的?

@07akioni
Copy link
Collaborator

我好像忘了给 text 加了,要不来一个 PR?

@Adangs
Copy link
Contributor Author

Adangs commented Oct 27, 2021

从没参与过github上的PR流程,还是提个单先吧 -,-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

No branches or pull requests

2 participants