# acc-swiper

> A Vue.js project

Latest version **1.0.7** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install acc-swiper
pnpm add acc-swiper
yarn add acc-swiper
bun add acc-swiper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-08-28 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 551.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | zx |
| Maintainers | acczhuang |

## Links

- npm: https://www.npmjs.com/package/acc-swiper
- npm.io page: https://npm.io/package/acc-swiper

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.11

## Recent versions

- 1.0.7 (latest) — 2019-08-28
- 1.0.6 — 2019-08-28
- 1.0.5 — 2019-08-27
- 1.0.4 — 2019-08-27
- 1.0.3 — 2019-08-26
- 1.0.2 — 2019-08-26
- 1.0.1 — 2019-08-26
- 1.0.0 — 2019-08-26

## README

#acc-swiper 

> The goal is to be a high-performance tabs component ,Resolving Mobile Gestures

###使用
```
    npm install acc-swiper
```


```html

    <!-- swiper名称可以自定义的啦 -->
    <div id="swiper">
        <!-- swiper-item名称也可以自定义啦，相当于一个滑块 -->
        <div class="swiper-item">
            <img src="./images/1.jpg" />
        </div>
        <div class="swiper-item">
            <img src="./images/2.jpg" />
        </div>
        <div class="swiper-item">
            <img src="./images/3.jpg" />
        </div>
    </div>
```
```js
    import AccSwiper from 'acc-swiper'

    new AccSwiper({
        swiper: '#swiper',		// swiper节点名称
        item: '.swiper-item',	// swiper内部滑块的节点名称
        container:null,         // swiper滑动容器，建议必须参数，如果不穿将只作为swiper轮播，无法                             派发浏览器事件
        change(index) {			// 每滑动一个滑块，插件就会触发change函数，index表示当前的滑块下标
            console.log(index);
        }
    });

```

# AccSwiper

---
_Source: https://npm.io/package/acc-swiper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
