-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.vue
85 lines (71 loc) · 1.52 KB
/
App.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<script setup lang="ts">
import { ref } from 'vue';
import VNativeDialog from './components/VNativeDialog.vue';
const open = ref(false);
const open2 = ref(false);
const open3 = ref(false);
const open4 = ref(false);
</script>
<template>
<v-native-dialog
inline
:open="open"
>
<p>This is a native dialog with a vue wrapper</p>
<button @click="open=false">
Close
</button>
</v-native-dialog>
<div>
<button @click="open=true">
Open inline dialog
</button>
</div>
<v-native-dialog
:open="open2"
>
<p>This is a native dialog with a backdrop</p>
<button @click="open2=false">
Close
</button>
</v-native-dialog>
<div>
<button @click="open2=true">
Open dialog with backdrop
</button>
</div>
<v-native-dialog
:open="open3"
>
<p>This is a native dialog with another dialog inside</p>
<button @click="open3=false">
Close
</button>
<button @click="open4=true">
Open embed dialog
</button>
<v-native-dialog
:open="open4"
>
<p>The other one</p>
<button @click="open4=false">
Close
</button>
</v-native-dialog>
</v-native-dialog>
<div>
<button @click="open3=true">
Open dialog with another inside
</button>
</div>
</template>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>