File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Common props ref:[Common props](/docs/react/common-props)
43
43
| --- | --- | --- | --- | --- |
44
44
| avatar | Avatar component | React.ReactNode | - | |
45
45
| classNames | Semantic DOM class | [ Record<SemanticDOM, string>] ( #semantic-dom ) | - | |
46
- | content | Content of bubble | string | - | |
46
+ | content | Content of bubble | [ BubbleContentType ] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) | - | |
47
47
| footer | Footer content | React.ReactNode \| (content: [ BubbleContentType] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) ) => React.ReactNode | - | |
48
48
| header | Header content | React.ReactNode | - | |
49
49
| loading | Loading state of Message | boolean | - | |
@@ -53,7 +53,7 @@ Common props ref:[Common props](/docs/react/common-props)
53
53
| typing | Show message with typing motion | boolean \| { step?: number, interval?: number } | false | |
54
54
| variant | Style variant | ` filled ` \| ` borderless ` \| ` outlined ` \| ` shadow ` | ` filled ` | |
55
55
| loadingRender | Customize loading content | () => ReactNode | - | |
56
- | messageRender | Customize display content | ( content?: string ) => ReactNode | - | |
56
+ | messageRender | Customize display content | <ContentType extends [ BubbleContentType ] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) = string>( content?: ContentType ) => ReactNode | - | |
57
57
| onTypingComplete | Callback when typing effect is completed. If typing is not set, it will be triggered immediately when rendering. | () => void | - | |
58
58
59
59
### Bubble.List
Original file line number Diff line number Diff line change 44
44
| --- | --- | --- | --- | --- |
45
45
| avatar | 展示头像 | React.ReactNode | - | |
46
46
| classNames | 语义化结构 class | [ Record<SemanticDOM, string>] ( #semantic-dom ) | - | |
47
- | content | 聊天内容 | string | - | |
47
+ | content | 聊天内容 | [ BubbleContentType ] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) | - | |
48
48
| footer | 底部内容 | React.ReactNode \| (content: [ BubbleContentType] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) ) => React.ReactNode | - | |
49
49
| header | 头部内容 | React.ReactNode | - | |
50
50
| loading | 聊天内容加载状态 | boolean | - | |
54
54
| typing | 设置聊天内容打字动画 | boolean \| { step?: number, interval?: number } | false | |
55
55
| variant | 气泡样式变体 | ` filled ` \| ` borderless ` \| ` outlined ` \| ` shadow ` | ` filled ` | |
56
56
| loadingRender | 自定义渲染加载态内容 | () => ReactNode | - | |
57
- | messageRender | 自定义渲染内容 | ( content?: string ) => ReactNode | - | |
57
+ | messageRender | 自定义渲染内容 | <ContentType extends [ BubbleContentType ] ( https://github.com/ant-design/x/blob/d3232c925a0dc61ad763c6664e16f07323ebca4a/components/bubble/interface.ts#L21 ) = string>( content?: ContentType ) => ReactNode | - | |
58
58
| onTypingComplete | 打字效果完成时的回调,如果没有设置 typing 将在渲染时立刻触发 | () => void | - | |
59
59
60
60
### Bubble.List
You can’t perform that action at this time.
0 commit comments