Skip to content

feat: support chat group #594

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
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

zwight
Copy link
Contributor

@zwight zwight commented Aug 11, 2025

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

变更内容

  1. 新增chat对话组列表组件
  2. 调整Chat.Input样式

详细描述

对应 Previewer

@LuckyFBB LuckyFBB changed the title feat: support chart group feat: support chat group Aug 12, 2025
@@ -34,6 +34,9 @@ export default function Input({
<div className="dtc__chat__textarea__container">
<AntdInput.TextArea
className={classNames('dtc__chat__textarea', className)}
autoSize={{
maxRows: 7,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去除 minRows 可能会对其他子产品产生影响,比如离线在这个输入框左上角加了 自动运行 的 switch 样式的开关,如果只有一行可能会有样式问题,直接 merge RC 的 Chat 组件可能导致问题。查了下不写 minRows 的情况下,minRows 的默认值会是 undefined,最小行数会由 rows 决定,默认值是 2,那么是否可以保留原先的参数,即 { minRows: 2, maxRows: 7 },仅将 autoSize 参数移动到 {...rest} 前方以方便接收入参覆盖。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里设置了min-height: 100px,因为UI说需要统一调整,原本的{ minRows: 2, maxRows: 7 }参数没法确保最小高度精确到100px,所以在这里去掉最小行数

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

Successfully merging this pull request may close these issues.

3 participants