diff --git a/content/plus/chat/index-en-US.md b/content/plus/chat/index-en-US.md index 71cc8e90d7..ad4efe7657 100644 --- a/content/plus/chat/index-en-US.md +++ b/content/plus/chat/index-en-US.md @@ -1606,6 +1606,7 @@ render(DefaultChat); |------|--------|-------|-------| | align | Dialog layout, supports `leftRight`,`leftAlign` | string | `leftRight` | | bottomSlot | bottom slot for chat | React.ReactNode | - | +| canSend | Whether the send button is enabled. Normally, no settings are needed; the component internally determines whether sending is enabled. If settings are configured, the settings will prevail. Added in v2.90.0. | boolean | | chatBoxRenderConfig | chatBox rendering configuration | ChatBoxRenderConfig | - | | chats | Controlled conversation list | Message | - | | className | Custom class name | string | - | diff --git a/content/plus/chat/index.md b/content/plus/chat/index.md index 66f4d0d443..14c7aba277 100644 --- a/content/plus/chat/index.md +++ b/content/plus/chat/index.md @@ -1609,6 +1609,7 @@ render(DefaultChat); |------|--------|-------|-------| | align | 对话布局方式,支持 `leftRight`、`leftAlign` | string | `leftRight` | | bottomSlot | 底部插槽 | React.ReactNode | - | +| canSend | 发送按钮是否可以发送。通常无需设置,由内部逻辑决定。如有设置,以此设置为准,v2.90.0 新增 | boolean | | chatBoxRenderConfig | chatBox 渲染配置 | ChatBoxRenderConfig | - | | chats | 受控对话列表 | Message | - | | className | 自定义类名 | string | - | diff --git a/packages/semi-foundation/chat/inputboxFoundation.ts b/packages/semi-foundation/chat/inputboxFoundation.ts index 9f2331693f..0f2bb32148 100644 --- a/packages/semi-foundation/chat/inputboxFoundation.ts +++ b/packages/semi-foundation/chat/inputboxFoundation.ts @@ -60,7 +60,12 @@ export default class InputBoxFoundation
, S = Record