1.0.1 • Published 6 years ago

@flyer2311/vue-sm-scroll v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

vue-sm-scroll

this is a plugin used in VUE and based on better-scroll

keywords

npm.io npm.io npm.io npm.io npm.io

Download

npm install @flyer2311/vue-sm-scroll --save

Function

  1. support native scroll
  2. support pulldown and pullup
  3. support async
  4. support timeout and fail
  5. support px2rem

Environment

  1. VUE(install CLI)
  2. better-scroll

Basic direct

请看./example/example.vue的例子

Inner construction

<FLYER-scroll
:options='options'
@pullDownCB='pullDownCB'
@pullUpCB='pullUpCB'
@scrollHandle='scrollHandle'
:data='data'
ref='scroll'
:error='error'
>
  <template></template>
  <template slot='pullDown' slot-scope='parent'></template>
  <template slot='pullup' slot-scope='parent'></template>
</FLYER-scroll>
1.0.1

6 years ago

1.0.0

6 years ago