forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPersistent.vue
More file actions
33 lines (28 loc) · 813 Bytes
/
Persistent.vue
File metadata and controls
33 lines (28 loc) · 813 Bytes
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>
<div class="q-pa-md q-gutter-sm">
<q-btn label="Click me" color="primary" @click="persistent = true" />
<q-dialog v-model="persistent" persistent transition-show="scale" transition-hide="scale">
<q-card class="bg-teal text-white" style="width: 300px">
<q-card-section>
<div class="text-h6">Persistent</div>
</q-card-section>
<q-card-section class="q-pt-none">
Click/Tap on the backdrop.
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="OK" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
persistent: ref(false)
}
}
}
</script>