滚动指令

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

用例

The default behavior is to bind to the window. If no additional configuration options are needed, you can simply pass your callback function.

API

v-scroll
名称
arg:target
默认值
window
类型
String

Directives.Scrolling.

名称
value
Signature
() => {}
类型
Function

Directives.Scrolling.

示例

滚动选项

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

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore