docs: type highlight (#4264)
This commit is contained in:
+11
-11
@@ -128,16 +128,16 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| autoplay | Autoplay interval (ms) | `number` | - | - |
|
||||
| duration | Animation duration (ms) | `number` | `500` | - |
|
||||
| loop | Whether to enable loop | `boolean` | `true` | - |
|
||||
| vertical | Vertical Scrolling | `boolean` | `false` | - |
|
||||
| touchable | Whether touchable | `boolean` | `true` | - |
|
||||
| show-indicators | Whether to show indicators | `boolean` | `true` | - |
|
||||
| indicator-color | Indicator color | `string` | `#1989fa` | - |
|
||||
| initial-swipe | Index of initial swipe, start from 0 | `number` | `0` | - |
|
||||
| width | Set Swiper Item Width | `number` | `0` | - |
|
||||
| height | Set Swiper Item Height | `number` | `0` | - |
|
||||
| autoplay | Autoplay interval (ms) | *number* | - | - |
|
||||
| duration | Animation duration (ms) | *number* | `500` | - |
|
||||
| loop | Whether to enable loop | *boolean* | `true` | - |
|
||||
| vertical | Vertical Scrolling | *boolean* | `false` | - |
|
||||
| touchable | Whether touchable | *boolean* | `true` | - |
|
||||
| show-indicators | Whether to show indicators | *boolean* | `true` | - |
|
||||
| indicator-color | Indicator color | *string* | `#1989fa` | - |
|
||||
| initial-swipe | Index of initial swipe, start from 0 | *number* | `0` | - |
|
||||
| width | Set Swiper Item Width | *number* | `0` | - |
|
||||
| height | Set Swiper Item Height | *number* | `0` | - |
|
||||
|
||||
### Swipe Events
|
||||
|
||||
@@ -163,7 +163,7 @@ Use ref to get swipe instance and call instance methods
|
||||
|
||||
| Name | Description | Type |
|
||||
|------|------|------|
|
||||
| immediate | Whether to skip animation | `boolean` |
|
||||
| immediate | Whether to skip animation | *boolean* |
|
||||
|
||||
### Swipe Slots
|
||||
|
||||
|
||||
+11
-11
@@ -134,16 +134,16 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| autoplay | 自动轮播间隔,单位为 ms | `number` | - | - |
|
||||
| duration | 动画时长,单位为 ms | `number` | `500` | - |
|
||||
| initial-swipe | 初始位置索引值 | `number` | `0` | - |
|
||||
| loop | 是否开启循环播放 | `boolean` | `true` | - |
|
||||
| show-indicators | 是否显示指示器 | `boolean` | `true` | - |
|
||||
| indicator-color | 指示器颜色 | `string` | `#1989fa` | - |
|
||||
| vertical | 是否为纵向滚动 | `boolean` | `false` | - |
|
||||
| touchable | 是否可以通过手势滑动 | `boolean` | `true` | - |
|
||||
| width | 滑块宽度 | `number` | `auto` | - |
|
||||
| height | 滑块高度 | `number` | `auto` | - |
|
||||
| autoplay | 自动轮播间隔,单位为 ms | *number* | - | - |
|
||||
| duration | 动画时长,单位为 ms | *number* | `500` | - |
|
||||
| initial-swipe | 初始位置索引值 | *number* | `0` | - |
|
||||
| loop | 是否开启循环播放 | *boolean* | `true` | - |
|
||||
| show-indicators | 是否显示指示器 | *boolean* | `true` | - |
|
||||
| indicator-color | 指示器颜色 | *string* | `#1989fa` | - |
|
||||
| vertical | 是否为纵向滚动 | *boolean* | `false` | - |
|
||||
| touchable | 是否可以通过手势滑动 | *boolean* | `true` | - |
|
||||
| width | 滑块宽度 | *number* | `auto` | - |
|
||||
| height | 滑块高度 | *number* | `auto` | - |
|
||||
|
||||
### Swipe Events
|
||||
|
||||
@@ -169,7 +169,7 @@ export default {
|
||||
|
||||
| 名称 | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
| immediate | 是否跳过动画 | `boolean` |
|
||||
| immediate | 是否跳过动画 | *boolean* |
|
||||
|
||||
### Swipe Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user