# page-scroll-bottom

> 我这是自用 组件滑动到底部

Latest version **1.0.1** (published 2020-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install page-scroll-bottom
pnpm add page-scroll-bottom
yarn add page-scroll-bottom
bun add page-scroll-bottom
```

## 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.1 |
| Published | 2020-03-23 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | shiyingguo |
| Keywords | scroll, vue |

## Links

- npm: https://www.npmjs.com/package/page-scroll-bottom
- npm.io page: https://npm.io/package/page-scroll-bottom

## Recent versions

- 1.0.1 (latest) — 2020-03-23
- 1.0.0 — 2020-03-23

## README

我这是自用  组件滑动到底部

```
main.js
import Vue from 'vue'
import App from './App.vue'
import scrollPageBottom from "page-scroll-bottom"
Vue.use(scrollPageBottom)

page.vue

 pageId 单页面多个组件时候使用

 @on-scrollbottom  滑动到底部出发  
 
 heigt 接收高度
 
 宽度会撑满

<template>
  <div id="app">
    <ScrollBottom pageId="pageId"  @on-scrollbottom="scrollbottom" height="100vh">
      <p v-for="item in list" class="psss"></p>
    </ScrollBottom>
  </div>
</template>

<script>
// import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  data() {
    return {
      list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    };
  },
  components: {},
  methods: {
    scrollbottom(d) {
      this.list = [...this.list, ...[2, 3, 4, 5]];
    }
  }
};
</script>
```

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