forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTouchView.vue
37 lines (36 loc) · 1.08 KB
/
TouchView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Touch Support',
desc: 'The <code>v-touch</code> directive allows you to capture swipe gestures and apply directional callbacks.',
props: {
'v-touch': {
params: [
[
'[up, down, left, right]',
'Function',
'-',
'Assign a callback based upon a swipe direction. Pairing x-axis and y-axis callbacks is not recommended at this time.',
],
[
'[move, start, end]',
'Function',
'-',
'Assign a callback when the touch event starts, ends, and while it is in progress',
]
]
}
},
examples: [
{ header: 'Default', file: 'touch/1', desc: 'On a mobile device, try swiping in various directions.' }
]
}
}
}
}
</script>