Appearance
Carousel 轮播
使用端侧 swiper 支持滑动、自动轮播和前后控制。
vue
<ll-carousel v-model="scan" :items="samples" circular />Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| model-value | 当前索引,从 0 开始 | number | — | 必填 |
| items | 条目,含 id 和 label | object[] | — | 必填 |
| orientation | 滚动方向 | horizontal / vertical | — | horizontal |
| circular | 循环 | boolean | — | false |
| autoplay | 自动播放 | boolean | — | false |
| height | 显示高度 px | number | — | 175 |
Events
| 事件名称 | 说明 |
|---|---|
| update:modelValue | 当前索引变化 |
Slots
| 名称 | 说明 |
|---|---|
| default | 幻灯片内容,接收 item |