UNPKG

vue-dt-scroll-lock

Version:
27 lines (25 loc) 502 B
# vue-dt-scroll-lock scroll-lock directive for vue.js(2.0) ## Installation NPM(recommend) ``` npm install vue-dt-scroll-lock --save ``` ## Get started ``` import Vue from 'vue'; import vueScrollLock from 'vue-dt-scroll-lock'; Vue use(vueScrollLock); ``` Directive v-scroll-lock then can be used in any of your Component. ``` <template> <div v-scroll-lock> <p>test</p> </div> </template> ``` ## issue Support for apple's Safari browser is not yet clear ## LICENSE MIT