0.1.4 • Published 4 years ago

sea-carousel v0.1.4

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

SeaCarousel

Install

npm install sea-carousel --save

Import

// main.js
import SeaCarousel from "sea-carousel"
import "sea-carousel/lib/sea-carousel.css"
Vue.use(SeaCarousel)

Use

<sea-carousel column="3" spacing="15" arrow="always">
    <span slot="left"><i class="el-icon-arrow-left"></i></span>
    <span slot="right"><i class="el-icon-arrow-right"></i></span>
    <sea-carousel-item v-for="_ in 5" :key="index">
      <div>要展示的内容</div>
    </sea-carousel-item>
</sea-carousel>

SeaCarousel Attributes

参数说明类型可选值默认值
column列数Number--2
spacing列间距Number--16
arrow箭头显示方式Stringalways/hoverhover

SeaCarousel Methods

方法名说明参数
resize宽度改变时调用--
move翻页-1-上一页,1-下一页

SeaCarousel Slot

name说明
default只能是SeaCarouselItem
left上一页按钮
right下一页按钮

SeaCarouselItem Slot

name说明
default要展示的内容
0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago