1.0.1 • Published 6 years ago
@flyer2311/vue-sm-scroll v1.0.1
vue-sm-scroll
this is a plugin used in VUE and based on better-scroll
keywords
Download
npm install @flyer2311/vue-sm-scroll --save
Function
- support native scroll
- support pulldown and pullup
- support async
- support timeout and fail
- support px2rem
Environment
- VUE(install CLI)
- 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>