Skip to content

docs(bubble): update messageRender type desc and fix typo #1048

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 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/bubble/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Common props ref:[Common props](/docs/react/common-props)
| typing | Show message with typing motion | boolean \| { step?: number, interval?: number } | false | |
| variant | Style variant | `filled` \| `borderless` \| `outlined` \| `shadow` | `filled` | |
| loadingRender | Customize loading content | () => ReactNode | - | |
| messageRender | Customize display content | <ContentType extends [BubbleContentType](https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21) = string>(content?: ContentType) => ReactNode | - | |
| messageRender | Customize display content | (content?: ContentType) => ReactNode | - | |
Copy link
Member

Choose a reason for hiding this comment

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

ContentType 最好留一个链接,不然看不出来里面有啥。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

那我保留英文文档的链接,给中文文档补充下链接

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已更新

| onTypingComplete | Callback when typing effect is completed. If typing is not set, it will be triggered immediately when rendering. | () => void | - | |

#### ContentType
Expand All @@ -70,7 +70,7 @@ type ContentType = React.ReactNode | AnyObject | string | number;
Custom type usage

```tsx
type CustomContentType {
type CustomContentType = {
...
}

Expand Down
2 changes: 1 addition & 1 deletion components/bubble/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type ContentType = React.ReactNode | AnyObject | string | number;
自定义类型使用

```tsx
type CustomContentType {
type CustomContentType = {
...
}

Expand Down