[Doc] add click event document (#722)

This commit is contained in:
neverland 2018-03-19 13:05:08 +08:00 committed by GitHub
parent 326b2d4c51
commit 1489efd9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 38 additions and 2 deletions

View File

@ -76,3 +76,9 @@ Use `tag` prop to custom button tag
| loading | Whether show loading status | `Boolean` | `false` | - |
| block | Whether to set display block | `Boolean` | `false` | - |
| bottom-action | Whether to be action button | `Boolean` | `false` | - |
### Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
| click | Triggered when click button and not disabled or loading | - |

View File

@ -82,7 +82,13 @@ Vue.use(Cell).use(CellGroup);
| is-link | Whether to show link icon | `Boolean` | `false` | - |
| required | Whether to show required mark | `Boolean` | `false` | - |
### Slot
### Cell Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
| click | Triggered when click cell | - |
### Cell Slot
| name | Description |
|-----------|-----------|

View File

@ -29,3 +29,9 @@ import 'vant/lib/vant-css/icon-local.css';
|-----------|-----------|-----------|-------------|-------------|
| name | Icon name | `String` | `''` | - |
| info | Info message | `String` | `''` | - |
### Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
| click | Triggered when click icon | - |

View File

@ -80,3 +80,9 @@ Vue.use(Button);
| loading | 是否显示为加载状态 | `Boolean` | `false` | - |
| block | 是否为块级元素 | `Boolean` | `false` | - |
| bottom-action | 是否为底部行动按钮 | `Boolean` | `false` | - |
### Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| click | 点击按钮且按钮状态不为加载或禁用时触发 | - |

View File

@ -89,7 +89,13 @@ Vue.use(Cell).use(CellGroup);
| is-link | 是否展示右侧箭头并开启点击反馈 | `Boolean` | `false` | - |
| required | 是否显示表单必填符号 | `Boolean` | `false` | - |
### Slot
### Cell Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| click | 点击 cell 时触发 | - |
### Cell Slot
| 名称 | 说明 |
|-----------|-----------|

View File

@ -30,3 +30,9 @@ import 'vant/lib/vant-css/icon-local.css';
|-----------|-----------|-----------|-------------|-------------|
| name | 图标名称 | `String` | `''` | - |
| info | 图标右上角文字提示 | `String` | `''` | - |
### Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| click | 点击图标时触发 | - |