# wc-pull-up-load

> 基于 Vue 的图片组件

Latest version **1.0.4** (published 2017-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install wc-pull-up-load
pnpm add wc-pull-up-load
yarn add wc-pull-up-load
bun add wc-pull-up-load
```

## 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.4 |
| Published | 2017-12-26 |
| First published | 2017-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | linfeng123 |
| Maintainers | linfeng123 |

## Links

- npm: https://www.npmjs.com/package/wc-pull-up-load
- Repository: https://github.com/helicopters/wc-pull-up-load
- Homepage: https://github.com/helicopters/wc-pull-up-load#readme
- Issues: https://github.com/helicopters/wc-pull-up-load/issues
- npm.io page: https://npm.io/package/wc-pull-up-load

## Recent versions

- 1.0.4 (latest) — 2017-12-26

## README

## 上拉加载

## 引入方式
```shell
npm i wc-pullup-load --save-dev

import wcPullupLoad from 'wc-pullup-load'
Vue.use(wcPullupLoad);
```

## 使用方式
```html
<wc-pullup-load ref="p" @end="more"/>

不需要用这个组件包裹列表.
它只是起了一个代码容器的效果.

在每次加载结束之后, 需要手动解锁一下:
this.$refs.p.unlock();
```


## 问题
* 在多个 tab 都存在 offset 的时候怎么办, 
维护多个 offset, 而不是使用多个 wc-pullup-load, 这个需要注意下. 








1. 只是需要一个地方可以容纳一下监听效果而已,


1. 这个玩意, 只是一段代码需要有地方使用而已. 而且需要一个回调而已. 所以做一个 mixins, 不是更好吗. 
还是组件的形式吧. 然后可以加上一个默认的效果, lock 效果也可以去掉. 

2. 然后还有, lock 这个操作, 不想要了. 真的好难啊. 

多个tab切换的时候, 需要不同的触发事件还是就一个触发事件呢. 

可能引入的方式就是这样

<wc-pullup-load ref="pullup" @end="more"/>

然后就可以使用了.

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