Skip to content

Commit 94fe84b

Browse files
authored
docs: modification tips (#844)
1 parent aa2d426 commit 94fe84b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/bubble/demo/header-and-footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import React from 'react';
66
const App: React.FC = () => {
77
const { token } = theme.useToken();
88
const onCopy = (textToCopy: any) => {
9-
if (!textToCopy) return message.success('文本为空');
10-
message.success(`文本复制成功${textToCopy}`);
9+
if (!textToCopy) return message.success('Text is empty');
10+
message.success(`Text copied successfully:${textToCopy}`);
1111
};
1212
return (
1313
<Bubble

components/bubble/index.en-US.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ Common props ref:[Common props](/docs/react/common-props)
5050
| header | Header content | React.ReactNode \| (content: ContentType, info:{ key?: string \| number }) => React.ReactNode | - | - |
5151
| loading | Loading state of Message | boolean | - | |
5252
| placement | Direction of Message | `start` \| `end` | `start` | |
53-
| shape | Shape of bubble | `round` \| `corner` | - | | | styles | Semantic DOM style | [Record<SemanticDOM, CSSProperties>](#semantic-dom) | - | |
53+
| shape | Shape of bubble | `round` \| `corner` | - | - |
54+
| styles | Semantic DOM style | [Record<SemanticDOM, CSSProperties>](#semantic-dom) | - | |
5455
| typing | Show message with typing motion | boolean \| { step?: number, interval?: number } | false | |
5556
| variant | Style variant | `filled` \| `borderless` \| `outlined` \| `shadow` | `filled` | |
5657
| loadingRender | Customize loading content | () => ReactNode | - | |

0 commit comments

Comments
 (0)