更新记录

1.0.0(2019-11-15)

1.0.0


平台兼容性

  1. 引用组件

    import cgSwiper from '@/components/cg-swiper/cg-swiper.vue';
  2. 注册组件

components:{
    cgSwiper
}
  1. template中使用 组件
<cg-swiper :swiperList="swiperList" @clickItem="clickItem"></cg-swiper>

4.参数

{
    name: 'cg-swiper',
    props: {
        // 面板指示点
        swiperDots: {
            type: Boolean,
            default: false
        },
        // 指示点颜色
        swiperColor: {
            type: String,
            default: '#999999'
        },
        // 选中指示点颜色
        swiperActiveColor: {
            type: String,
            default: '#FFCC00'
        },
        // 是否自动切换
        autoplay: {
            type: Boolean,
            default: false
        },
        // 自动切换时长
        interval: {
            type: Number,
            default: 5000
        },
        // 滑动动画时长
        duration:{
            type: Number,
            default: 500
        },
        // 是否采用衔接滑动
        circular: {
            type: Boolean,
            default: false
        },
        // 滑动块视图容器
        swiperList: {
            type: Array,
            default: function() {
                return [];
            }
        },
        // 是否开启自定义指示点
        customize: {
            type: Boolean,
            default: true
        }
    },

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问