This repository was archived by the owner on Jan 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +88
-15
lines changed Expand file tree Collapse file tree 5 files changed +88
-15
lines changed Original file line number Diff line number Diff line change 7
7
},
8
8
"license" : " MIT" ,
9
9
"dependencies" : {
10
- "gitart-vue-dialog" : " ^ 0.0.12 " ,
10
+ "gitart-vue-dialog" : " 0.0.14 " ,
11
11
"vue" : " 3.2.0-beta.7"
12
12
},
13
13
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -53,6 +53,6 @@ export default defineComponent({
53
53
54
54
<style lang="scss">
55
55
.app {
56
- height : 2000 px ;
56
+ min- height : 100 vh ;
57
57
}
58
58
</style >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <GDialog
3
+ v-model =" value"
4
+ max-width =" 400"
5
+ height =" 600"
6
+ scrollable
7
+ >
8
+ <div
9
+ flex =" ~ col"
10
+ bg =" gray-50"
11
+ border =" rounded"
12
+ >
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 >
29
+ </div >
30
+ </GDialog >
31
+ </template >
32
+
33
+ <script lang="ts">
34
+ import { defineComponent } from ' vue'
35
+ import { GDialog } from ' plugin'
36
+
37
+ import { useModelWrapper } from ' @/composables/modelWrapper'
38
+
39
+ import DialogToolbar from ' @/components/Dialog/DialogToolbar.vue'
40
+
41
+ export default defineComponent ({
42
+ name: ' BaseDialog' ,
43
+ components: {
44
+ GDialog ,
45
+ DialogToolbar ,
46
+ },
47
+
48
+ props: {
49
+ modelValue: {
50
+ type: Boolean ,
51
+ default: false ,
52
+ },
53
+ },
54
+
55
+ emits: [' update:modelValue' ],
56
+
57
+ setup(props , { emit }) {
58
+ const value = useModelWrapper (props , emit )
59
+
60
+ const onClose = () => {
61
+ value .value = false
62
+ }
63
+
64
+ return {
65
+ value ,
66
+ onClose ,
67
+ }
68
+ },
69
+ })
70
+ </script >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" flex wrap" >
2
+ <div
3
+ grid =" inline gap-3 auto-cols-auto flow-col"
4
+ >
3
5
<DialogStateWrapper
4
6
v-slot =" {model, input}"
5
7
label =" Base"
6
- class =" mr-3"
7
8
>
8
9
<BaseDialog :model-value =" model" @update:model-value =" input" />
9
10
</DialogStateWrapper >
14
15
>
15
16
<StyledDialog :model-value =" model" @update:model-value =" input" />
16
17
</DialogStateWrapper >
18
+
19
+ <DialogStateWrapper
20
+ v-slot =" {model, input}"
21
+ label =" Scroll"
22
+ >
23
+ <ScrollDialog :model-value =" model" @update:model-value =" input" />
24
+ </DialogStateWrapper >
17
25
</div >
18
26
</template >
19
27
20
28
<script lang="ts">
21
29
import DialogStateWrapper from ' @/components/Dialog/DialogStateWrapper.vue'
22
30
import BaseDialog from ' @/components/Dialogs/BaseDialog/BaseDialog.vue'
23
31
import StyledDialog from ' @/components/Dialogs/StyledDialog/StyledDialog.vue'
32
+ import ScrollDialog from ' @/components/Dialogs/ScrollDialog/ScrollDialog.vue'
24
33
25
34
export default {
26
35
name: ' DialogLayout' ,
27
36
components: {
28
37
DialogStateWrapper ,
29
38
BaseDialog ,
30
39
StyledDialog ,
40
+ ScrollDialog ,
31
41
},
32
42
33
43
setup() {},
Original file line number Diff line number Diff line change @@ -322,11 +322,6 @@ bluebird@^3.7.2:
322
322
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
323
323
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
324
324
325
- body-scroll-lock@^4.0.0-beta.0 :
326
- version "4.0.0-beta.0"
327
- resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-4.0.0-beta.0.tgz#4f78789d10e6388115c0460cd6d7d4dd2bbc4f7e"
328
- integrity sha512-a7tP5+0Mw3YlUJcGAKUqIBkYYGlYxk2fnCasq/FUph1hadxlTRjF+gAcZksxANnaMnALjxEddmSi/H3OR8ugcQ==
329
-
330
325
braces@^3.0.1 :
331
326
version "3.0.2"
332
327
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
@@ -520,12 +515,10 @@ get-intrinsic@^1.0.2:
520
515
has "^1.0.3"
521
516
has-symbols "^1.0.1"
522
517
523
- gitart-vue-dialog@^0.0.12 :
524
- version "0.0.12"
525
- resolved "https://registry.yarnpkg.com/gitart-vue-dialog/-/gitart-vue-dialog-0.0.12.tgz#829b524691fc4f678827dbdacb01a1123964a8dc"
526
- integrity sha512-3ix8ovWe+cJpGXWobx49TuCu2pGDt1sFSIcr4Zkhx133fZqWWYzyr+hbhVTj46OKGdI3Wb1ki2pq+PnDeqUFMA==
527
- dependencies :
528
- body-scroll-lock "^4.0.0-beta.0"
518
+
519
+ version "0.0.14"
520
+ resolved "https://registry.yarnpkg.com/gitart-vue-dialog/-/gitart-vue-dialog-0.0.14.tgz#321a301b9db6df07941ab84a2b44027a454ff699"
521
+ integrity sha512-RlVLe0YDttF3aimasnK9p97XqM5pKrDlJfZ6r37JoB2cqB2c+x9UlRkcrbvLgQCCuNybh4dJSPsD3qaUTV6xpg==
529
522
530
523
glob-parent@^5.1.2 :
531
524
version "5.1.2"
You can’t perform that action at this time.
0 commit comments