Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit e3476ec

Browse files
committed
feat(demo): update nesting dialogs and upgrade toolbar
1 parent f683abc commit e3476ec

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

demo/src/components/Dialog/DialogToolbar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
border="rounded-full"
2020
bg="gray-200 hover:gray-300"
2121
p="a-2"
22+
m="l-auto"
2223

2324
@click="onClose"
2425
>

demo/src/components/Layout/NestingDialogLayout.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
v-model="dialogs.first"
99
max-width="400"
1010
>
11+
<DialogToolbar @close="dialogs.first = false" />
12+
1113
<div p="x-5 y-4">
1214
<h3 m="b-4">
1315
First Dialog
@@ -29,8 +31,10 @@
2931

3032
<GDialog
3133
v-model="dialogs.second"
32-
max-width="300"
34+
fullscreen
3335
>
36+
<DialogToolbar @close="dialogs.second = false" />
37+
3438
<div p="x-5 y-4">
3539
<h3 m="b-4">
3640
Second Dialog
@@ -50,6 +54,8 @@
5054
v-model="dialogs.third"
5155
max-width="500"
5256
>
57+
<DialogToolbar @close="dialogs.third = false" />
58+
5359
<div p="x-5 y-4">
5460
<h3 m="b-4">
5561
Third Dialog
@@ -84,12 +90,15 @@
8490
import { defineComponent, reactive } from 'vue'
8591
import { GDialog } from 'plugin'
8692
93+
import DialogToolbar from '@/components/Dialog/DialogToolbar.vue'
94+
8795
import Btn from '@/components/UI/Btn/Btn.vue'
8896
8997
export default defineComponent({
9098
name: 'DialogLayout',
9199
components: {
92100
GDialog,
101+
DialogToolbar,
93102
Btn,
94103
},
95104

0 commit comments

Comments
 (0)