-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
feat(components): [select-v2] add fit-input-width
prop
#18834
Conversation
👋 @YiMo1, thank you for contributing element-plus. |
commit: |
🧪 Playground Preview: https://element-plus.run/?pr=18834 |
We should name this property as |
如果用户通过 |
因为 beforeAll(() => {
HTMLCanvasElement.prototype.getContext = function () {
return null
}
}) |
@btea 弄完了,除了翻译,还有什么问题吗?如果翻译不需要非常严谨,那么请允许我使用机器翻译,谢谢。 |
没事,机器翻译目前水平已经非常高了,完全够用。 |
可以试试。 |
@btea OK,已经全部弄完了。 |
63a70ca
to
1773d74
Compare
When Reproducible Link: |
谢谢,我认为只需要监听 Thank you, I think we just need to listen to the value of |
86c00da
to
d204f0b
Compare
这两个Bug都已经解决,虽然增加了一些性能开销,但如果不是特别频繁输入的话,比如一直按着键盘导致 Both of these bugs have been resolved, although they have increased some performance overhead. However, if the input is not very frequent, such as constantly pressing the keyboard causing the |
74cdc21
to
4e413fc
Compare
Co-authored-by: thinkasany <[email protected]> Co-authored-by: btea <[email protected]>
Thanks for your contribution! |
fix #18812
fix #10652
添加了一个
fit-input-width
属性,如果为true
,则下拉框的宽度与输入框相同,如果为false
,则根据所有label
的值进行计算自适应宽度,也可以设置为数值以固定宽度。