JSPM

  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q54677F

具有手动切换、自动定时切换、查看缩略图功能的轮播图、图片展示组件

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cdtbanner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    banner

    具有手动切换、自动定时切换、查看缩略图功能的轮播图、图片展示组件。

    Project setup

    npm install

    Compiles and hot-reloads for development

    npm run serve

    Compiles and minifies for production

    npm run build

    Lints and fixes files

    npm run lint

    API introduction

    id:String 必传项
    用于多个轮播图组件同时使用时,内部根据id区分。
    lists:Array[string] 必传项
    轮播图组件要显示的图片的地址组成的数组。
    height:string 选填项
    轮播图组件样式高度。
    initialIndex:string | number 选填项
    轮播图组件默认进来选中的图片的索引值。
    glassW:string | number 选填项
    轮播图正方形放大镜的边长:必须开启放大镜才有效。
    large:string | number 选填项
    轮播图放大镜放大的级别:默认放大4倍,至少是一个大于1的数,可以是小数;必须开启放大镜才有效。
    autoPlay:Boolean 选填项
    轮播图是否自动轮播:默认自动轮播。
    openGlass:Boolean 选填项
    轮播图是否开启放大镜:默认开启。
    interval:Number | String 选填项
    轮播图自动轮播时间间隔:默认2000ms

    Customize configuration

    See Configuration Reference.