docs: improve click event typing (#8106)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -159,7 +159,7 @@ app.use(Button);
|
||||
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
| ---------- | ---------------------------------------- | ------------------- |
|
||||
| click | 点击按钮,且按钮状态不为加载或禁用时触发 | _event: Event_ |
|
||||
| click | 点击按钮,且按钮状态不为加载或禁用时触发 | _event: MouseEvent_ |
|
||||
| touchstart | 开始触摸按钮时触发 | _event: TouchEvent_ |
|
||||
|
||||
### Slots
|
||||
|
||||
Reference in New Issue
Block a user