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

Commit 4255bc7

Browse files
committed
feat(demo): upgrade to [email protected]
1 parent 341c335 commit 4255bc7

File tree

7 files changed

+68
-42
lines changed

7 files changed

+68
-42
lines changed

demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"dependencies": {
1010
"@vueuse/core": "^5.2.0",
11-
"gitart-vue-dialog": "0.2.0-alpha.4",
11+
"gitart-vue-dialog": "0.2.0",
1212
"vue": "3.2.4"
1313
},
1414
"devDependencies": {

demo/src/App.vue

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export default defineComponent({
5959
:root {
6060
--g-dialog-content-bg: #f9fafb;
6161
--g-dialog-content-border-radius: 6px;
62+
--g-dialog-overlay-bg: rgba(33, 33, 33, 0.55);
6263
}
6364
6465
.app {

demo/src/components/Dialogs/FullscreenDialog/FullscreenDialog.vue

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<GDialog
33
v-model="value"
44
fullscreen
5+
transition="custom-slide-up-transition"
56
>
67
<div
7-
bg="gray-50"
88
min-h="full"
99
>
1010
<DialogToolbar @close="onClose">
@@ -77,3 +77,18 @@ export default defineComponent({
7777
},
7878
})
7979
</script>
80+
81+
<style lang="scss">
82+
.custom-slide-up-transition {
83+
opacity: 0;
84+
85+
&-enter-from {
86+
transform: translate(0, 40%);
87+
opacity: 0;
88+
}
89+
90+
&-leave-to {
91+
opacity: 0;
92+
}
93+
}
94+
</style>

demo/src/components/Dialogs/ScrollDialog/ScrollDialog.vue

+14-20
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,24 @@
22
<GDialog
33
v-model="value"
44
max-width="400"
5-
height="600"
5+
height="600px"
66
scrollable
77
>
8+
<DialogToolbar @close="onClose">
9+
<h4>
10+
Scroll Dialog
11+
</h4>
12+
</DialogToolbar>
13+
814
<div
9-
flex="~ col"
10-
bg="gray-50"
11-
border="rounded"
15+
p="x-5 y-4"
16+
overflow="auto"
1217
>
13-
<DialogToolbar @close="onClose">
14-
<h4>
15-
Scroll Dialog
16-
</h4>
17-
</DialogToolbar>
18-
19-
<div
20-
p="x-5 y-4"
21-
overflow="auto"
22-
>
23-
<p v-for="item in 8" :key="item">
24-
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Totam quisquam iste assumenda
25-
voluptates optio dolorum facere, corrupti adipisci ex possimus,
26-
quis sunt. Quis dolorum voluptatibus ab quasi, nemo rem? Culpa!
27-
</p>
28-
</div>
18+
<p v-for="item in 8" :key="item">
19+
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Totam quisquam iste assumenda
20+
voluptates optio dolorum facere, corrupti adipisci ex possimus,
21+
quis sunt. Quis dolorum voluptatibus ab quasi, nemo rem? Culpa!
22+
</p>
2923
</div>
3024
</GDialog>
3125
</template>

demo/src/components/Dialogs/StyledDialog/StyledDialog.vue

+31-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
<template>
22
<GDialog
33
v-model="value"
4+
transition="custom-rotate-transition"
5+
overlay-background="rgba(143, 108, 249, 0.4)"
46
:max-width="400"
57
>
6-
<div
7-
bg="gray-50"
8-
border="rounded"
9-
>
10-
<DialogToolbar @close="onClose">
11-
<h4>
12-
Styled Dialog
13-
</h4>
14-
</DialogToolbar>
15-
16-
<div p="x-5 y-4">
17-
<p>
18-
Some content
19-
</p>
20-
</div>
8+
<DialogToolbar @close="onClose">
9+
<h4>
10+
Styled Dialog
11+
</h4>
12+
</DialogToolbar>
13+
14+
<div p="x-5 y-4">
15+
<p>
16+
Some content
17+
</p>
2118
</div>
2219
</GDialog>
2320
</template>
@@ -59,3 +56,22 @@ export default defineComponent({
5956
},
6057
})
6158
</script>
59+
60+
<style lang="scss" >
61+
.custom-rotate-transition {
62+
&-enter-active,
63+
&-leave-active {
64+
transition-timing-function: linear;
65+
}
66+
67+
&-enter-from {
68+
transform: translate(0, 30px) rotate(12deg);
69+
opacity: 0;
70+
}
71+
72+
&-leave-to {
73+
transform: translate(0, 30px) rotate(4deg);
74+
opacity: 0;
75+
}
76+
}
77+
</style>

demo/src/components/Interface/TheFooter.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
text="xs gray-400"
77
>
88
<span>
9-
9+
1010
</span>
1111

1212
<span m="l-auto">

demo/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ get-intrinsic@^1.0.2:
479479
has "^1.0.3"
480480
has-symbols "^1.0.1"
481481

482-
483-
version "0.2.0-alpha.4"
484-
resolved "https://registry.yarnpkg.com/gitart-vue-dialog/-/gitart-vue-dialog-0.2.0-alpha.4.tgz#6bb5cf0361fb4f13ae0edf9852fe5d5e836e3b8f"
485-
integrity sha512-HOoeyS2icve0bnBFTkMBocdpUagkVSEXDZ7KzWpeewFWgzzn7yP+zOhZAayfOVSBCBRkaPQcjjYAdNywe7EKfg==
482+
483+
version "0.2.0"
484+
resolved "https://registry.yarnpkg.com/gitart-vue-dialog/-/gitart-vue-dialog-0.2.0.tgz#1775f2fedb715587e9c00ca5b8ba4a55d94c9c18"
485+
integrity sha512-F9D5VYESUa52xbDIz42GmWBbgruh86/GDmjBnrQb3zmLAH1osLbi/JfvCAvi4V39lBtRWbk1zc1XNRiC+5uB2Q==
486486

487487
glob-parent@^5.1.2:
488488
version "5.1.2"

0 commit comments

Comments
 (0)