Socket
Socket
Sign inDemoInstall

vue-native-scroll

Package Overview
Dependencies
11
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-native-scroll

vue native scroll


Version published
Weekly downloads
1
Maintainers
1
Install size
13.6 MB
Created
Weekly downloads
 

Readme

Source

vue-native-scroll

Version

原生滚动插件,解决ios和安卓上web浏览器元素在局部div内滚动产生的问题。

install

npm install vue-native-scroll --save

yarn add vue-native-scroll

usage

import Vue from 'vue'
import ScrollView from 'vue-native-scroll';
Vue.use(ScrollView, {
  name: 'scroll-view' // 全局component名,默认ScrollView
});

<template>
  <scroll-view>
    <div>滚动条内部</div>
  </scroll-view>
</template>

或

import ScrollView from 'vue-native-scroll';
new Vue({
  components: {
    'scroll-view': ScrollView
  }
});

tip

配合vant的PullRefresh组件可以实现局部区域的下拉刷新。

Keywords

FAQs

Last updated on 26 Dec 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc