forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResizeView.vue
33 lines (32 loc) · 836 Bytes
/
ResizeView.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
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Resize directive',
edit: 'Resize',
directive: 'resize',
desc: 'The <code>v-resize</code> directive can be used for calling specific functions when the window resizes.',
props: {
'v-resize': {
params: [
[
'value',
'Function',
'Required',
'Function to be called on window resize',
]
]
}
},
examples: [
{ header: 'Default', file: 'resize/1', desc: 'Resize your window and observe the values change.' }
]
}
}
}
}
</script>