New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jhswiper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jhswiper

这是胖丁辛辛苦苦写了5分钟的轮播插件

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

jhswiper

Project setup

安装
npm install jhswiper

Compiles and hot-reloads for development

npm run serve

全局导入注册

import JhSwiper from 'jhswiper'
Vue.use(JhSwiper);

Compiles and minifies for production

npm run build

html使用示例

    <jh-swiper :config="config"></jh-swiper>

config示例

export default {
  data () {
    return {
      config:{
            // direction: 'vertical', // 垂直切换选项
            loop: true, // 循环模式选项

            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },

            // 如果需要前进后退按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },

            // 如果需要滚动条
            scrollbar: {
                el: '.swiper-scrollbar',
            },
            size:{
              width:"600px",
              height:"300px",
              'background-color':"skyblue"
            }
      }
    }
  }
}

Customize configuration

See Configuration Reference.

Keywords

轮播

FAQs

Package last updated on 12 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts