docs: improve click event typing (#8106)

This commit is contained in:
neverland
2021-02-09 16:35:54 +08:00
committed by GitHub
parent 8c58097121
commit dcef90a2a3
38 changed files with 150 additions and 150 deletions
+5 -5
View File
@@ -95,11 +95,11 @@ app.use(NoticeBar);
### Events
| Event | Description | Arguments |
| ------ | ---------------------------------- | -------------- |
| click | Emitted when NoticeBar is clicked | _event: Event_ |
| close | Emitted when NoticeBar is closed | _event: Event_ |
| replay | Emitted when NoticeBar is replayed | - |
| Event | Description | Arguments |
| ------ | ---------------------------------- | ------------------- |
| click | Emitted when NoticeBar is clicked | _event: MouseEvent_ |
| close | Emitted when NoticeBar is closed | _event: MouseEvent_ |
| replay | Emitted when NoticeBar is replayed | - |
### Slots
+5 -5
View File
@@ -120,11 +120,11 @@ app.use(NoticeBar);
### Events
| 事件名 | 说明 | 回调参数 |
| ------ | ---------------------------- | -------------- |
| click | 点击通知栏时触发 | _event: Event_ |
| close | 关闭通知栏时触发 | _event: Event_ |
| replay | 每当滚动栏重新开始滚动时触发 | - |
| 事件名 | 说明 | 回调参数 |
| ------ | ---------------------------- | ------------------- |
| click | 点击通知栏时触发 | _event: MouseEvent_ |
| close | 关闭通知栏时触发 | _event: MouseEvent_ |
| replay | 每当滚动栏重新开始滚动时触发 | - |
### Slots