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

Word limit #13

Closed
huizhang001 opened this issue Aug 15, 2019 · 4 comments
Closed

Word limit #13

huizhang001 opened this issue Aug 15, 2019 · 4 comments

Comments

@huizhang001
Copy link

Big Brother, can you add a word limit function? Pixels feel strange.

@vivaxy
Copy link
Owner

vivaxy commented Aug 15, 2019

Please provide demo for more details.

@huizhang001
Copy link
Author

额。。。就是能不能,以字数限制那个展开和收起,比如我要限制100字,才显示那个展开内容按钮。并不是根据高度。。。这样可以吗?

@vivaxy
Copy link
Owner

vivaxy commented Aug 16, 2019

本组件的设计初衷是为了针对布局优化展示效果,因此这里限制的是组件高度。
如果是需要限制字数,解决方案的实现并不复杂,或可以使用其他组件,如 https://github.com/nkbt/react-collapse 等。

@vivaxy vivaxy closed this as completed Aug 16, 2019
@huizhang001
Copy link
Author

好,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants