0.1.7 • Published 3 years ago
ohmybox v0.1.7
oh-my-box
A Scroll Component for Vue.js
Links
Install
npm install ohmybox -S
Start
import { OhMyBox, OhMyBoxItem } from 'ohmybox'
import 'ohmybox/lib/ohmybox.css'
<OhMyBox
:scrollHeight='scrollHeight'
:quickScrollHeight='quickScrollHeight'
:scrollDuration='scrollDuration'
:clickDuration='clickDuration'
:clickDistance='clickDistance'
@change='change'
@click='click'
ref='ohmybox'
>
<OhMyBoxItem v-for='(item, idx) in 5' :key='idx'>{{item}}</OhMyBoxItem>
</OhMyBox>