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

select文字长度问题 #63

Open
zhangjing007 opened this issue May 7, 2022 · 3 comments
Open

select文字长度问题 #63

zhangjing007 opened this issue May 7, 2022 · 3 comments

Comments

@zhangjing007
Copy link

1、建议通过一个属性来控制option超出规定长度后隐藏并显示缩略号,并提供tips展示
2、当选中某一个选项后,select的长度显示效果同第一条处理,现在是这样的太丑了
image

@XboxYan
Copy link
Owner

XboxYan commented Jun 25, 2022

已修复这个问题。其实可以看下源码,改下样式就行,原生开发最大的好处就是不用学习其他框架,也不会过时,现在三年过去了,除了有些语法可以优化外,整体逻辑是没太大问题的。再看看 react,三年前的代码和现在对比,是不是又要重构了?
image

@zhangjing007
Copy link
Author

最好提供一个长度超过某一个设定的值,隐藏,出现...

@XboxYan
Copy link
Owner

XboxYan commented Sep 15, 2022

最好提供一个长度超过某一个设定的值,隐藏,出现...

@zhangjing007 这类功能建议二次开发,你看看 ant 那些库,那么多属性就是不断叠加功能形成的,但是还是满足不了千奇百怪的需求

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