docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions
+9 -9
View File
@@ -73,12 +73,12 @@ export default {
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| name | Identifier of SwipeCell | `string | number` | - | 2.0.4 |
| on-close | Callback function before close | `Function` | - | - |
| disabled | Whether to disabled swipe | `boolean` | `false` | - |
| left-width | Width of the left swipe area | `number` | `auto` | - |
| right-width | Width of the right swipe area | `number` | `auto` | - |
| stop-propagation | Whether to stop touchmove event propagation | `boolean` | `false` | 2.1.0 |
| name | Identifier of SwipeCell | *string \| number* | - | 2.0.4 |
| on-close | Callback function before close | *Function* | - | - |
| disabled | Whether to disabled swipe | *boolean* | `false` | - |
| left-width | Width of the left swipe area | *number* | `auto` | - |
| right-width | Width of the right swipe area | *number* | `auto` | - |
| stop-propagation | Whether to stop touchmove event propagation | *boolean* | `false` | 2.1.0 |
### Slots
@@ -98,9 +98,9 @@ export default {
| Attribute | Description | Type |
|------|------|------|
| clickPosition | Click positon (`left` `right` `cell` `outside`) | `string` |
| instance | SwipeCell instance | `object` |
| detail | Detail info | `object` |
| clickPosition | Click positon (`left` `right` `cell` `outside`) | *string* |
| instance | SwipeCell instance | *object* |
| detail | Detail info | *object* |
### Methods
+9 -9
View File
@@ -78,12 +78,12 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| name | 标识符,可以在 onClose 的参数中获取到 | `string | number` | - | 2.0.4 |
| on-close | 关闭时的回调函数 | `Function` | - | - |
| disabled | 是否禁用滑动 | `boolean` | `false` | - |
| left-width | 指定左侧滑动区域宽度 | `number` | `auto` | - |
| right-width | 指定右侧滑动区域宽度 | `number` | `auto` | - |
| stop-propagation | 是否阻止滑动事件冒泡 | `boolean` | `false` | 2.1.0 |
| name | 标识符,可以在 onClose 的参数中获取到 | *string \| number* | - | 2.0.4 |
| on-close | 关闭时的回调函数 | *Function* | - | - |
| disabled | 是否禁用滑动 | *boolean* | `false` | - |
| left-width | 指定左侧滑动区域宽度 | *number* | `auto` | - |
| right-width | 指定右侧滑动区域宽度 | *number* | `auto` | - |
| stop-propagation | 是否阻止滑动事件冒泡 | *boolean* | `false` | 2.1.0 |
### Slots
@@ -103,9 +103,9 @@ export default {
| 参数名 | 说明 | 类型 |
|------|------|------|
| clickPosition | 关闭时的点击位置 (`left` `right` `cell` `outside`) | `string` |
| instance | SwipeCell 实例,用于调用实例方法 | `object` |
| detail | 额外信息,包含 name 字段 | `object` |
| clickPosition | 关闭时的点击位置 (`left` `right` `cell` `outside`) | *string* |
| instance | SwipeCell 实例,用于调用实例方法 | *object* |
| detail | 额外信息,包含 name 字段 | *object* |
### 方法