Skip to content

Commit b4b2732

Browse files
authored
docs(message): remove redundant props (#5468)
1 parent bfdc674 commit b4b2732

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

components/message/index.en-US.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This components provides some static methods, with usage and arguments as follow
2727
| --- | --- | --- | --- |
2828
| content | content of the message | string\| VNode \| () => VNode | - |
2929
| duration | time(seconds) before auto-dismiss, don't dismiss if set to 0 | number | 1.5 |
30-
| onClose | Specify a function that will be called when the message is closed | Function | - |
30+
| onClose | Specify a function that will be called when the message is closed | function | - |
3131

3232
`afterClose` can be called in then-able interface:
3333

@@ -56,7 +56,6 @@ The properties of config are as follows:
5656
| style | Customized inline style | CSSProperties | - | |
5757
| onClick | Specify a function that will be called when the message is clicked | function | - | |
5858
| onClose | Specify a function that will be called when the message is closed | function | - | |
59-
| onClose | Specify a function that will be called when the message is closed | function | - | |
6059

6160
### Global static methods
6261

components/message/index.zh-CN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg
2828
| --- | --- | --- | --- |
2929
| content | 提示内容 | string\| VNode \| () => VNode | - |
3030
| duration | 自动关闭的延时,单位秒。设为 0 时不自动关闭。 | number | 3 |
31-
| onClose | 关闭时触发的回调函数 | Function | - |
31+
| onClose | 关闭时触发的回调函数 | function | - |
3232

3333
组件同时提供 promise 接口
3434

@@ -58,7 +58,6 @@ cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg
5858
| key | 当前提示的唯一标志 | string \| number | - | |
5959
| style | 自定义内联样式 | CSSProperties | - | |
6060
| onClick | 点击 message 时触发的回调函数 | function | - | |
61-
| onClose | 关闭时触发的回调函数 | Function | - | |
6261
| onClose | 关闭时触发的回调函数 | function | - | |
6362

6463
### 全局方法

0 commit comments

Comments
 (0)