Skip to content

Conversation

@YyumeiZhang
Copy link
Collaborator

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Fixes #3051

Changelog

🇨🇳 Chinese

  • Feat: Chat 组件新增加 canSend API

🇺🇸 English

  • Feat: The Chat component now includes the canSend API.

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

@YyumeiZhang YyumeiZhang requested a review from YannLynn November 28, 2025 03:27
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 80444f0:

Sandbox Source
pr-story Configuration

@cypress
Copy link

cypress bot commented Nov 28, 2025

semi-design    Run #3381

Run Properties:  status check passed Passed #3381  •  git commit c802422303 ℹ️: Merge 80444f076e3fa3137541d7bc34c84d01bfbe8081 into 4db0d84458aca1124cd7f7e76893...
Project semi-design
Branch Review feat/3051
Run status status check passed Passed #3381
Run duration 08m 19s
Commit git commit c802422303 ℹ️: Merge 80444f076e3fa3137541d7bc34c84d01bfbe8081 into 4db0d84458aca1124cd7f7e76893...
Committer YyumeiZhang
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 13
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 291
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

|------|--------|-------|-------|
| 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.89.0. | boolean |
Copy link
Collaborator

Choose a reason for hiding this comment

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

版本号记得改一下~

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.

[Chat] 提供参数支持允许用户自行控制是否允许发送

3 participants