【发布时间】:2019-12-01 14:32:10
【问题描述】:
https://vuetifyjs.com/en/components/windows#windows
<v-window
v-model="window"
:touch = "swipe"
>
如何在左右滑动时提供自定义左右功能?我这样做的方式不起作用,因为我无法访问我需要的变量,也无法在方法中调用函数。
export default {
name :'test',
data() {
return {
window: 0,
length1:20,
swipe: {
length2:11,
left: function() {
//access both length1 and length2 here//
},
right: function() {
},
}
};
【问题讨论】:
标签: vue.js vuetify.js