vue-scroll-lock 一个VUE 组件:子元素 scroll 父元素容器不跟随滚动(兼容PC、移动端) 【 React 请移步react-scroll-lock-component】 文档& 例子 Document & Demo 使用 npm install vue-scroll-lock --save // or yarn add vue-scroll-lock // main.jsimportVueScrollLockfrom'vue-scroll-lock'Vue.use(Vue...
v-body-scroll-lock A Vue directive to lock the body from scrolling without stopping the target element from scrolling. Uses the body-scroll-lock library (https://github.com/willmcpo/body-scroll-lock). Works on mobile and tablet (iOS, Android) and desktop (Chrome, Firefox, Safari). Table ...
vue-body-scroll-lock. Latest version: 0.2.11, last published: 7 months ago. Start using @fastkit/vue-body-scroll-lock in your project by running `npm i @fastkit/vue-body-scroll-lock`. There are 3 other projects in the npm registry using @fastkit/vue-body
"@vue/compiler-core" "^3.2.21" "@vue/compiler-dom" "^3.2.21" "@vue/shared" "^3.2.21" upath "^2.0.1" "@vscode/emmet-helper@^2.8.0": version "2.8.4" resolved "https://registry.npmmirror.com/@vscode/emmet-helper/-/emmet-helper-2.8.4.tgz#ab937e3ce79b0873c604d1ad...
vue-scroll-lock是一个Vue组件,用于实现子元素滚动时父元素容器不跟随滚动的效果,同时兼容PC端和移动端。 该组件通过监听子元素的滚动事件,并利用CSS属性进行样式控制,实现父元素容器固定不滚动的效果。无论是在PC端还是移动端,都可以实现平滑的滚动体验。 使用vue-scroll-lock组件非常简单,只需将需要固定的父元素...
v-scroll-lock is a small yet useful Vue.js directive that prevents the body scroll when other components (e.g. modal, nav, etc) are activated.
vue-body-scroll-lock是一个Vue指令,用于在不影响目标元素滚动的情况下锁定页面整体的滚动。通过该指令,可以实现在弹出层或其他需要固定页面滚动的情况下,同时保持特定元素的滚动功能不受影响。这个插件能够帮助开发者更灵活地控制页面滚动行为,提升用户体验,是构建交互性强大的Vue应用程序时的有用工具之一。A Vue ...
A Vue directive to lock the body scroll without stopping the target element from scrolling. - vue-body-scroll-lock/package.json at master · martinbuezas/vue-body-scroll-lock
constactual=awaitvi.importActual('@vueuse/shared') return{ ...actual, isIOS:true, } }) constaddEventListener=vi.spyOn(targetEl,'addEventListener') constremoveEventListener=vi.spyOn(targetEl,'removeEventListener') constisLock=useScrollLock(targetEl) ...
martinbuezas / vue-body-scroll-lock Public forked from BramHoningh/vue-body-scroll-lock Notifications Fork 0 Star 0 Code Pull requests Actions Projects Security Insights martinbuezas/vue-body-scroll-lock projects Search all projects Search results 0 Open 0 Closed Sort No open ...