# load-more-dida

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

Latest version **1.0.2** (published 2021-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install load-more-dida
pnpm add load-more-dida
yarn add load-more-dida
bun add load-more-dida
```

## 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.2 |
| Published | 2021-10-28 |
| First published | 2021-10-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 44.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dididadida |

## Links

- npm: https://www.npmjs.com/package/load-more-dida
- npm.io page: https://npm.io/package/load-more-dida

## Recent versions

- 1.0.2 (latest) — 2021-10-28
- 1.0.1 — 2021-10-28
- 1.0.0 — 2021-10-28

## README

# 瀑布流插件

每当我们一个页面加载到非常多的数组项时，想要实现“滚动触底，加载更多”的效果，可以使用这个插件。



> 作者: 嘀嘀嗒嘀嗒

## 	一、安装

```shell
npm i load-more-dida - s
```

或者

```shell
yarn add load-more-dida
```



## 	二、引入

在vue项目的入口文件 `main.js` 中 加入以下代码

```shell
import LoadMore from 'load-more-dida'

Vue.use(LoadMore)
```



## 	三、使用

​	在产品列表组件上做修改，举例： 如原来的组件是这么使用的:

```html
<Products :arr="goodsArr" />
```

​	但现在要改为

```html
<LoadMore :daArr="goodsArr" :size="8">
    <Products slot-scope="scope" :arr="scope.samllArr" />
</LoadMore>
```



## 	四、关键词解释

- `zwxarr` 代表你要渲染的总数据（Array类型）
- `pagesize` 代表你每次滚动要加载多少项(Number类型)
- `wxarr` 代表每次返回出来的新数组





**`GG`**

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