# loadmore-tifa

> 一个页面加载到非常多的数组项时，想要实现“滚动触底，加载更多”的效果，可以使用这个插件。

Latest version **1.0.0** (published 2021-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install loadmore-tifa
pnpm add loadmore-tifa
yarn add loadmore-tifa
bun add loadmore-tifa
```

## 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.0 |
| Published | 2021-11-06 |
| First published | 2021-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tifa131 |

## Links

- npm: https://www.npmjs.com/package/loadmore-tifa
- npm.io page: https://npm.io/package/loadmore-tifa

## Recent versions

- 1.0.0 (latest) — 2021-11-06

## README

# PC端滚动触底，加载更多
一个页面加载到非常多的数组项时，想要实现“滚动触底，加载更多”的效果，可以使用这个插件。


## 一、安装

```
npm i loadmore-tifa -S
```
或
```
yarn add loadmore-tifa
```

### 二、引入

在vue项目的入口文件 `main.js` 中：
 
```js
import LoadMore from 'loadmore-tifa'

Vue.use(LoadMore)
```

### 三、使用

在产品列表组件上做修改，举例：
如原来的组件是这么使用的：
```html
<Products :arr="goodsArr" />
```

现在改为：
```html
<LoadMore :zwxarr="goodsArr" :pagesize="8">
    <Products slot-scope="scope" :arr="scope.wxarr" />
</LoadMore>
```

### 四、关键词备注

- `zwxarr` 代表你要渲染的总数据（Array类型）
- `pagesize` 代表你每次滚动要加载多少项(Number类型)
- `wxarr` 代表每次返回出来的新数组

##### 请只填写 `<LoadMore></LoadMore>` 组件上的 `zwxarr` 和 `pagesize` 属性的值即可。

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