-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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, |
There was a problem hiding this comment.
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} 前方以方便接收入参覆盖。
There was a problem hiding this comment.
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,所以在这里去掉最小行数
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
详细描述
对应 Previewer