New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

u-scroller

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

u-scroller

基于Vue 2.x 封装的很轻量的scroller组件,具有下拉刷新、上拉加载更多的功能.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Source

u-scroller version vue

基于Vue 2.x 封装的很轻量的scroller组件,具有下拉刷新、上拉加载更多的功能.

Demo 示例

https://github.com/undo03/u-scroller

使用方式

# install dependencies
npm install u-scroller -S
import Vue from 'vue'
import UScroller from 'u-scroller'
Vue.use(UScroller)
  <u-scroller :onRefresh="onRefresh" :onInfinite="onInfinite">
    <!-- html content -->
  </u-scroller>

接口文档

props

属性名类型默认值是否必须说明
onRefreshFunction需要下拉刷新时,必须刷新时执行的函数
onInfiniteFunction需要加载更多时,必须加载更多是执行的函数
enableRefreshBooleantrue是否开启下拉刷新,默认开启
enableInfiniteBooleantrue是否开启上拉加载,默认开启
offsetNumber100触发下拉刷新的阈值
noDataTextString没有更多数据了没有更多数据时的提示语
refreshTextString下拉刷新下拉刷新提示
freedRefreshTextString松开刷新数据释放下拉提示语

slot

插槽名说明
refresh刷新时的效果或文字
load-more加载时的效果或文字

FAQs

Package last updated on 07 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts