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

vue-scroll-m

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-scroll-m

A mobile scroll component for vue, 移动端H5 vue滚动组件支持下拉刷新和上拉加载更多

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

vue-scroll H5 滚动组件支持下拉刷新和上拉加载更多

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

npm download

npm install vue-scroll-m -S

示例

* 手机打开微信或QQ二维码扫码查看示例
  • 打开链接demo

使用方法


<template>
  <div id="app">
    <scroll ref="scroll"
            :data="listData"
            :top="40"
            :bottom="40"
            @onScroll="onScroll"
            @pullingUp="onScrollBottom"
            @pullingDown="onPullingDown">
      <div class="list">
        <div class="item" v-for="(item, index) in listData" :key="index">
        </div>
      </div>
    </scroll>
  </div>
</template>

import Scroll from 'vue-scroll-m'

export default {
  components: {
    Scroll
  },
}

配置说明

参数类型描述必需默认值
dataarray滚动列表渲染的数据[]
topnumber或string滚动列表相对顶部位置0
bottomnumber或string滚动列表相对底部位置0
triggerHeightnumber或string触发pullingUp事件高度200
onScrollfunction监听列表滚动
pullingUpfunction滚动到底部加载更多触发
pullingDownfunction下拉刷新回调方法

Keywords

vue

FAQs

Package last updated on 26 Mar 2019

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