API 浏览器
滚动触发指令

“滚动触发” 是一个指令,它允许在用户滚动当前页面并且应用该方法的 DOM 元素(或组件)进入视口时调用该方法(一次且仅一次)。

¥“Scroll Fire” is a directive that enables a method to be called (once and only once) when the user scrolls current page and the DOM element (or component) that it is applied to comes into the viewport.

提示

还有一个 滚动 指令,它会在用户滚动页面时触发。

¥There is also a Scroll directive which fires whenever user scrolls the page.

Loading ScrollFire API...

用法(Usage)

¥Usage

滚动容器

请阅读 此处,了解 Quasar 如何确定要附加滚动事件的容器。

¥Please read here about how Quasar determines the container to attach scrolling events to.

Basic



IMPORTANT

出于性能考虑,注入的滚动监听器函数默认会进行 50 毫秒的去抖动。

¥For performance purposes, the scroll listener function injected is by default debounced by 50ms.