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

希望 Sender 组件可以传入 autoSize #635

Open
Zhang-Wei-666 opened this issue Mar 21, 2025 · 1 comment · May be fixed by #637
Open

希望 Sender 组件可以传入 autoSize #635

Zhang-Wei-666 opened this issue Mar 21, 2025 · 1 comment · May be fixed by #637
Labels
enhancement New feature or request

Comments

@Zhang-Wei-666
Copy link

需求动机

默认只有一行, 不能实现和现在主流大模型的输入框的默认 2/3 行左右的效果

提议的 API 是什么样的?

No response

Copy link

您希望 Sender 组件能够支持 autoSize 属性,以便默认情况下输入框可以显示 2/3 行,而不是仅仅一行。这是一个合理的功能请求,特别是对于需要更大输入框的应用场景。

目前,您可以通过以下方式来实现这个功能:

  1. 自定义样式:您可以通过自定义 CSS 样式来设置输入框的默认行数。
  2. 修改组件代码:如果您有权限修改组件代码,可以在组件中添加 autoSize 属性的支持。

如果您希望将此功能请求提交给项目维护者以供考虑,请确认是否需要我为您创建一个功能请求的 issue。请注意,创建 issue 需要您的确认。

Zhang-Wei-666 added a commit to Zhang-Wei-666/x that referenced this issue Mar 21, 2025
@Zhang-Wei-666 Zhang-Wei-666 linked a pull request Mar 21, 2025 that will close this issue
@kimteayon kimteayon added the enhancement New feature or request label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants