Skip to content

[Textarea] support manually resize for autosize minRows #5489

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

Open
YunYouJun opened this issue May 22, 2025 · 4 comments
Open

[Textarea] support manually resize for autosize minRows #5489

YunYouJun opened this issue May 22, 2025 · 4 comments
Labels
💭 discussion we are discussing 💪🏻 enhancement New feature or request

Comments

@YunYouJun
Copy link
Collaborator

YunYouJun commented May 22, 2025

这个功能解决了什么问题

Set fixed row for textarea.

你建议的方案是什么

Allow set rows api for t-textarea.

Ref

https://element-plus.org/en-US/component/input.html#textarea

Image
@YunYouJun YunYouJun added 💪🏻 enhancement New feature or request 🧐 unconfirmed waiting to be confirmed labels May 22, 2025
Copy link
Contributor

👋 @YunYouJun,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Wesley-0808
Copy link
Collaborator

Wesley-0808 commented May 24, 2025

是指初始的行数吗?同时允许手动拖高度?,目前有个类似的autosize.minRows不过设置后就不允许手动拖

@YunYouJun
Copy link
Collaborator Author

是指初始的行数吗?同时允许手动拖高度?,目前有个类似的autosize.minRows不过设置后就不允许手动拖

这里我此前的理解有点问题,可能不一定需要通过添加新 api 来解决。
不过目前看起来设置 autoResize minRows 后不支持手动 resize。

@Wesley-0808
Copy link
Collaborator

这里我此前的理解有点问题,可能不一定需要通过添加新 api 来解决。
不过目前看起来设置 autoResize minRows 后不支持手动 resize。

对的,我是觉得要支持resize 讨论一下先 🌹

@Wesley-0808 Wesley-0808 added 💭 discussion we are discussing and removed 🧐 unconfirmed waiting to be confirmed labels May 25, 2025
@YunYouJun YunYouJun changed the title [Textarea] add rows for textarea api [Textarea] support manually resize for autosize minRows May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing 💪🏻 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants