forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTooltipsView.vue
executable file
·61 lines (59 loc) · 1.56 KB
/
TooltipsView.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
items: [
{
text: 'foo',
value: 1
},
{
text: 'foobar',
value: 2
}
],
doc: {
title: 'Tooltip',
desc: 'The <code>v-tooltip</code> directive is useful for conveying information when a user hovers over an element.',
props: {
'v-tooltip': {
params: [
[
'modifiers',
'String',
'Required',
'top, right, bottom, left',
],
[
'html',
'String',
'Required',
'The content for the tooltip',
],
[
'visible',
'Boolean',
'True',
'Tooltip object property for determining visibility, see example #2'
]
]
}
},
examples: [
{ header: 'Default', file: 'tooltips/1', desc: 'Tooltips can be applied to any element that does not use the <code>:before</code> pseudo element' },
{ header: 'Visibility', file: 'tooltips/2', desc: 'Tooltips can be disabled using the <code>visible</code> property value in the tooltip object.' }
]
}
}
}
}
</script>
<style lang="stylus"
scoped
>
.btn
margin: 1rem
</style>