v3-infinite-loading
Advanced tools
Comparing version
{ | ||
"name": "v3-infinite-loading", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Infinite scroller component for vuejs-3", | ||
@@ -33,2 +33,3 @@ "homepage": "https://vue3-infinite-loading.netlify.app/", | ||
"vue3", | ||
"vue", | ||
"vue3 infinite loading", | ||
@@ -38,2 +39,3 @@ "vue component", | ||
"infinite scroller", | ||
"infinite scrolling", | ||
"infinite loading" | ||
@@ -40,0 +42,0 @@ ], |
## Intro | ||
An infinite scroll component compatible with Vue.js 3 and vite, to help you implement an infinite scroll list more easily. | ||
An infinite scroll component compatible with vue.js 3 and vite, to help you implement an infinite scroll list more easily. | ||
### Features | ||
## Features | ||
@@ -11,7 +11,41 @@ - Lightweight and simple to use | ||
## Install | ||
```Bash | ||
npm install v3-infinite-loading | ||
``` | ||
## Basic usage | ||
register globally: | ||
```JavaScript | ||
import InfiniteLoading from "v3-infinite-loading"; | ||
import "v3-infinite-loading/lib/style.css"; //required if you're not going to override default slots | ||
const app = createApp(App); | ||
app.component("infinite-loading", InfiniteLoading); | ||
app.mount("#app"); | ||
``` | ||
usage in SFC with script setup: | ||
```html | ||
<script setup> | ||
import InfiniteLoading from "v3-infinite-loading"; | ||
import "v3-infinite-loading/lib/style.css"; //required if you're not going to override default slots | ||
</script> | ||
<template> | ||
<InfiniteLoading /> | ||
</template> | ||
``` | ||
## Usage & Guide | ||
Documentation available on [Vue3-infinite-loading netlify](https://vue3-infinite-loading.netlify.com/) | ||
Documentation available on [v3-infinite-loading Netlify](https://vue3-infinite-loading.netlify.com/) | ||
Check out live example [Vue3-infinite-loading-example netlify](https://vue3-infinite-loading.example.netlify.com/) | ||
Check out live demo [v3-infinite-loading-demo Netlify](https://vue3-infinite-loading-demo.netlify.com/) | ||
@@ -18,0 +52,0 @@ ## Changelog |
12230
5.72%62
121.43%