# vue-shadow-plug

> A Vue.js project

Latest version **1.2.0** (published 2017-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-shadow-plug
pnpm add vue-shadow-plug
yarn add vue-shadow-plug
bun add vue-shadow-plug
```

## 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.2.0 |
| Published | 2017-09-26 |
| First published | 2017-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | shadow |
| Maintainers | c_shadow |

## Links

- npm: https://www.npmjs.com/package/vue-shadow-plug
- npm.io page: https://npm.io/package/vue-shadow-plug

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.3.3
- [style-loader](https://npm.io/package/style-loader.md) ^0.18.2

## Recent versions

- 1.2.0 (latest) — 2017-09-26
- 1.0.28 — 2017-09-26
- 1.0.22 — 2017-09-26
- 1.1.5 — 2017-09-25
- 1.1.4 — 2017-09-25
- 1.1.3 — 2017-09-25
- 1.1.2 — 2017-09-25
- 1.1.1 — 2017-09-25
- 1.1.0 — 2017-09-25
- 1.0.10 — 2017-09-25
- 1.0.9 — 2017-09-25
- 1.0.8 — 2017-09-20
- 1.0.7 — 2017-09-18
- 1.0.6 — 2017-09-18
- 1.0.5 — 2017-09-18
- … 5 more at https://npm.io/package/vue-shadow-plug/versions

## README

# vue-shadow-toast

> A Vue.js project

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).

#使用方法
## import xx from 'vue-shadow-plug'
## Vue.use(xx)

#toast
`this.$shadowToast({
                  tips: '坑可真多',
                  defaultType: 'top',
                  duration: '3500'
              })`
##参数
1. tips:message
2. defaultType:toast位置 目前可选:top,center,bottom
3. duration:持续时间,不传则默认3000

#Pagenation
以组件的形式引入
1. 组件传值 totolPage 总页数 必传 接收Number值
2. 当前页面 currentPage 当前页码 必传 接收Number值
3. @curPage 监听子组件的方法 子组件传值给父组件
4. leftShow,rightShow 不传默认false 接收Boolean值

#loadMore
以组件的形式引入
1. 组件传值  loading 接收Boolean值 默认false true的时候执行loadeMore方法
2. allLoaded 接收Boolean值 默认false(是否全部加载完)
3. autoFill  接收Boolean值 默认false(若为真，则指令被绑定到元素上后会立即检查是否需要执行加载方法。在初始状态下内容有可能撑不满容器时十分有用。)
4. 调用方法名 loadMore

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