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
+1 -1
View File
@@ -132,7 +132,7 @@ app.use(Button);
| Event | Description | Arguments |
| --- | --- | --- |
| click | Emitted when button is clicked and not disabled or loading | _event: Event_ |
| click | Emitted when button is clicked and not disabled or loading | _event: MouseEvent_ |
| touchstart | Emitted when button is touched | _event: TouchEvent_ |
### Slots
+1 -1
View File
@@ -159,7 +159,7 @@ app.use(Button);
| 事件名 | 说明 | 回调参数 |
| ---------- | ---------------------------------------- | ------------------- |
| click | 点击按钮,且按钮状态不为加载或禁用时触发 | _event: Event_ |
| click | 点击按钮,且按钮状态不为加载或禁用时触发 | _event: MouseEvent_ |
| touchstart | 开始触摸按钮时触发 | _event: TouchEvent_ |
### Slots