属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
opts | 选择项,详见 Embla Carousel Options | object | - |
orientation | 方向 | 'vertical' | 'horizontal' | 'horizontal' |
autoplay | 自动播放,详见 Embla Carousel Autoplay Options | object | - |
autoScroll | 自动滚动,详见 Embla Carousel Auto Scroll Options | object | - |
fade | 淡入淡出 | boolean | false |
class | 自定义类名 | string | - |
contentClass | 内容容器自定义类名 | string | - |
itemClass | 内容项自定义类名 | string | - |
插槽名 | 说明 |
---|---|
default | 自定义默认内容 |