Skip to content

Commit

Permalink
docs(sender): add onPasteFile callback (#495)
Browse files Browse the repository at this point in the history
Co-authored-by: ztkuaikuai <[email protected]>
Co-authored-by: 🏎️ Imer <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2025
1 parent 88aeb24 commit 9c6b0cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/sender/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Common props ref:[Common props](/docs/react/common-props)
| onSubmit | Callback when click send button | (message: string) => void | - | - |
| onChange | Callback when input value changes | (value: string, event?: React.FormEvent<`HTMLTextAreaElement`> \| React.ChangeEvent<`HTMLTextAreaElement`> ) => void | - | - |
| onCancel | Callback when click cancel button | () => void | - | - |
| onPasteFile | Callback when paste file | (file: File) => void | - | - |

```typescript | pure
type SpeechConfig = {
Expand Down
1 change: 1 addition & 0 deletions components/sender/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*cOfrS4fVkOMAAA
| onSubmit | 点击发送按钮的回调 | (message: string) => void | - | - |
| onChange | 输入框值改变的回调 | (value: string, event?: React.FormEvent<`HTMLTextAreaElement`> \| React.ChangeEvent<`HTMLTextAreaElement`> ) => void | - | - |
| onCancel | 点击取消按钮的回调 | () => void | - | - |
| onPasteFile | 黏贴文件的回调 | (file: File) => void | - | - |

```typescript | pure
type SpeechConfig = {
Expand Down

0 comments on commit 9c6b0cc

Please sign in to comment.