🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@shaoyongtao/vueslider

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shaoyongtao/vueslider

vue-swiper

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

vueslidershow

a slider implement by vuejs

一个vue的响应式自适应轮播图组件

Demo

实例效果

Install

npm i @shaoyongtao/vueslider

应用案例

in app.vue:

<template>
  <div id="app">
    <slider-show :imgs="imgs" :interval="interval"></slider-show>
  </div>
</template>

<script>
import sliderShow from "@shaoyongtao/vueslider";
export default {
  components: {
    sliderShow
  },
  name: "App",
  data() {
    return {
      imgs: [
        require("./assets/1.jpg"),
        require("./assets/2.jpg"),
        require("./assets/3.jpg")
      ],
      interval:7,
    };
  }
};
</script>

<style>
#app {}
</style>


参数说明:

1.interval,控制轮播速度 2.imgs,具体的轮播图片

License

MIT

FAQs

Package last updated on 16 Jul 2019

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