feat: support chat group,refactor before 10.30#594
Closed
zwight wants to merge 6 commits intoDTStack:masterfrom
Closed
feat: support chat group,refactor before 10.30#594zwight wants to merge 6 commits intoDTStack:masterfrom
zwight wants to merge 6 commits intoDTStack:masterfrom
Conversation
LuckyFBB
reviewed
Aug 12, 2025
liuxy0551
reviewed
Aug 12, 2025
| <AntdInput.TextArea | ||
| className={classNames('dtc__chat__textarea', className)} | ||
| autoSize={{ | ||
| maxRows: 7, |
Collaborator
There was a problem hiding this comment.
去除 minRows 可能会对其他子产品产生影响,比如离线在这个输入框左上角加了 自动运行 的 switch 样式的开关,如果只有一行可能会有样式问题,直接 merge RC 的 Chat 组件可能导致问题。查了下不写 minRows 的情况下,minRows 的默认值会是 undefined,最小行数会由 rows 决定,默认值是 2,那么是否可以保留原先的参数,即 { minRows: 2, maxRows: 7 },仅将 autoSize 参数移动到 {...rest} 前方以方便接收入参覆盖。
Contributor
Author
There was a problem hiding this comment.
这里设置了min-height: 100px,因为UI说需要统一调整,原本的{ minRows: 2, maxRows: 7 }参数没法确保最小高度精确到100px,所以在这里去掉最小行数
LuckyFBB
reviewed
Aug 22, 2025
| const diffDays = now.diff(input, 'days'); | ||
|
|
||
| if (diffDays < 1) { | ||
| return '今天'; |
Collaborator
|
加一个 previewer 吧,看看效果 |
Cythia828
reviewed
Sep 1, 2025
| // 后端 Id | ||
| assistantId?: string; | ||
| createdAt: Timestamp; | ||
| updatedAt: Timestamp; |
Collaborator
|
需要重构,定个时间放在这里吧 @zwight 有个时间概念 |
2898e5b to
f8581b0
Compare
Contributor
Author
|
refactor at #623 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
详细描述
对应 Previewer