This repository was archived by the owner on Jan 9, 2022. It is now read-only.
File tree 2 files changed +119
-0
lines changed
2 files changed +119
-0
lines changed Original file line number Diff line number Diff line change 21
21
<ProgrammaticalDialogLayout />
22
22
</div >
23
23
24
+ <div p =" y-3" >
25
+ <NestingDialogLayout />
26
+ </div >
27
+
24
28
<TheFooter m =" t-4" />
25
29
</div >
26
30
</div >
@@ -36,6 +40,7 @@ import TheFooter from '@/components/Interface/TheFooter.vue'
36
40
37
41
import DialogLayout from ' @/components/Layout/DialogLayout.vue'
38
42
import ProgrammaticalDialogLayout from ' @/components/Layout/ProgrammaticalDialogLayout.vue'
43
+ import NestingDialogLayout from ' @/components/Layout/NestingDialogLayout.vue'
39
44
40
45
export default defineComponent ({
41
46
name: ' App' ,
@@ -45,11 +50,17 @@ export default defineComponent({
45
50
TheFooter ,
46
51
DialogLayout ,
47
52
ProgrammaticalDialogLayout ,
53
+ NestingDialogLayout ,
48
54
},
49
55
})
50
56
</script >
51
57
52
58
<style lang="scss">
59
+ :root {
60
+ --g-dialog-content-bg : #f9fafb ;
61
+ --g-dialog-content-border-radius : 6px ;
62
+ }
63
+
53
64
.app {
54
65
min-height : 120vh ;
55
66
}
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <h3 m =" b-3" >
4
+ Nested Dialogs
5
+ </h3 >
6
+
7
+ <GDialog
8
+ v-model =" dialogs.first"
9
+ max-width =" 400"
10
+ >
11
+ <div p =" x-5 y-4" >
12
+ <h3 m =" b-4" >
13
+ First Dialog
14
+ </h3 >
15
+
16
+ <p m =" b-3" >
17
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Eos quas aliquid, voluptates voluptas commodi inventore.
18
+ </p >
19
+
20
+ <Btn m =" r-2" @click =" dialogs.second = true" >
21
+ Second
22
+ </Btn >
23
+
24
+ <Btn m =" r-2" @click =" dialogs.third = true" >
25
+ Third
26
+ </Btn >
27
+ </div >
28
+ </GDialog >
29
+
30
+ <GDialog
31
+ v-model =" dialogs.second"
32
+ max-width =" 300"
33
+ >
34
+ <div p =" x-5 y-4" >
35
+ <h3 m =" b-4" >
36
+ Second Dialog
37
+ </h3 >
38
+
39
+ <p m =" b-3" >
40
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit, sit.
41
+ </p >
42
+
43
+ <Btn m =" r-2" @click =" dialogs.third = true" >
44
+ Third
45
+ </Btn >
46
+ </div >
47
+ </GDialog >
48
+
49
+ <GDialog
50
+ v-model =" dialogs.third"
51
+ max-width =" 500"
52
+ >
53
+ <div p =" x-5 y-4" >
54
+ <h3 m =" b-4" >
55
+ Third Dialog
56
+ </h3 >
57
+ <p m =" b-3" >
58
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio iusto aperiam quasi recusandae nulla officia quibusdam libero et alias minus?
59
+ </p >
60
+ </div >
61
+ </GDialog >
62
+
63
+ <Btn
64
+ m =" r-2"
65
+ @click =" dialogs.first = true"
66
+ >
67
+ First
68
+ </Btn >
69
+
70
+ <Btn
71
+ m =" r-2"
72
+ @click =" dialogs.second = true"
73
+ >
74
+ Second
75
+ </Btn >
76
+
77
+ <Btn m =" r-2" @click =" dialogs.third = true" >
78
+ Third
79
+ </Btn >
80
+ </div >
81
+ </template >
82
+
83
+ <script lang="ts">
84
+ import { defineComponent , reactive } from ' vue'
85
+ import { GDialog } from ' plugin'
86
+
87
+ import Btn from ' @/components/UI/Btn/Btn.vue'
88
+
89
+ export default defineComponent ({
90
+ name: ' DialogLayout' ,
91
+ components: {
92
+ GDialog ,
93
+ Btn ,
94
+ },
95
+
96
+ setup() {
97
+ const dialogs = reactive ({
98
+ first: false ,
99
+ second: false ,
100
+ third: false ,
101
+ })
102
+
103
+ return {
104
+ dialogs ,
105
+ }
106
+ },
107
+ })
108
+ </script >
You can’t perform that action at this time.
0 commit comments