forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVModel.vue
More file actions
43 lines (40 loc) · 1.08 KB
/
VModel.vue
File metadata and controls
43 lines (40 loc) · 1.08 KB
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
<template>
<div class="q-pa-md">
<div class="q-gutter-sm">
<q-btn color="primary" @click="showing = true" label="Show"/>
<q-btn color="primary" @click="showing = false" label="Hide"/>
</div>
<div
style="width: 200px; height: 70px;"
class="bg-purple text-white rounded-borders row flex-center q-mt-md"
>
Click me
<q-menu v-model="showing">
<q-list style="min-width: 100px">
<q-item clickable v-close-popup>
<q-item-section>New tab</q-item-section>
</q-item>
<q-item clickable v-close-popup>
<q-item-section>New incognito tab</q-item-section>
</q-item>
<q-separator />
<q-item clickable v-close-popup>
<q-item-section>Recent tabs</q-item-section>
</q-item>
<q-item clickable v-close-popup>
<q-item-section>History</q-item-section>
</q-item>
</q-list>
</q-menu>
</div>
</div>
</template>
<script>
export default {
data () {
return {
showing: false
}
}
}
</script>