npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cdtbanner

v1.1.9

Published

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

Downloads

57

Readme

cdtbanner

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

安装

npm install cdtbanner

引入

import Banner from 'cdtbanner'
export default{
    components:{Banner},
    ...
}

API introduction

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

Customize configuration

See Configuration Reference.