Vuetify

商店

企业版

v-scroll 指令允许你在窗口或者特定定义的元素滚动时提供回调。

默认行为是绑定到窗口。如果不需要其他配置选项,则可以简单的传递回调函数。

从下面选择您想要的组件,并查看可用的属性、插槽、事件和函数。

下面是一些简单到复杂的例子。

为了更好地调整方法,您可以给指定目标绑定滚动事件监听器。

v-scroll targets the window by default but can also watch the element it's being bound to. In the following example we use the self modifier, v-scroll.self, to watch the v-card element specifically. This causes the method onScroll to invoke as you scroll the card contents; incrementing the counter.

New in v2.3

想要了解更多?继续阅读:

Caught a mistake or want to contribute to the documentation? Edit Layout on GitHub!