forked from testing-library/vue-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVuetify.vue
39 lines (38 loc) · 854 Bytes
/
Vuetify.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
<template>
<div>
<v-btn @click="show = true">open</v-btn>
<v-dialog v-model="show">
<v-card>
<v-card-title class="headline green lighten-3">Lorem</v-card-title>
<v-card-text>Lorem ipsum dolor sit amet.</v-card-text>
</v-card>
</v-dialog>
<span v-if="showHint">This is a hint</span>
<v-menu bottom offset-y>
<template v-slot:activator="{on}">
<v-btn icon v-on="on">menu</v-btn>
</template>
<v-list>
<v-list-item @click="() => {}">
<v-list-item-title>menu item</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</div>
</template>
<script>
export default {
name: 'VuetifyDemoComponent',
props: {
showHint: {
type: Boolean,
default: false,
},
},
data() {
return {
show: false,
}
},
}
</script>