mirror of
https://github.com/youzan/vant.git
synced 2026-05-08 01:07:46 +08:00
docs: type highlight (#4264)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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* |
|
||||
|
||||
### 方法
|
||||
|
||||
|
||||
Reference in New Issue
Block a user