vue-stickto
v0.0.5
Published
A vue directive/component that support multiple DOM Node stick to top automatically (一个支持多DOM元素自动吸顶的vue指令)
Downloads
21
Readme
vue-stickto
A vue directive that support multiple DOM Node stick to top automatically (一个支持多DOM元素自动吸顶的vue指令)
Install
npm install vue-stickto
use
- import
import Vue from 'vue'
import VueStickto from 'vue-stickto'
Vue.use(VueStickto)
- simply add the directive into a tag
<div v-stickto>
</div>
- see the result
If you're using script tag to import
copy the dist/VueStickto.js
to the place wherever you want and <script src="[path]Vuestickto.js"/>