|
@@ -2,11 +2,15 @@
|
2
|
2
|
<div class="modal-wrapper" v-show="show">
|
3
|
3
|
<div class="modal" :style="modalStyle" @click.stop="handleMaskClick">
|
4
|
4
|
<fire-flies v-if="showFireflies"></fire-flies>
|
5
|
|
- <div class="back-btn" v-if="showBack" @click.stop="$emit('close')">
|
|
5
|
+ <div class="modal-action back-btn" v-if="showBack" @click.stop="$emit('close')">
|
6
|
6
|
<img src="~@/assets/buttonImg/backImg.png" alt="">
|
7
|
7
|
</div>
|
|
8
|
+ <div class="modal-action share-guide" v-if="showShare">
|
|
9
|
+ <img src="~@/assets/buttonImg/shareText.png" alt="">
|
|
10
|
+ </div>
|
|
11
|
+ <div class="modal-action"><slot name="action"></slot></div>
|
8
|
12
|
<div class="modal-body"><slot></slot></div>
|
9
|
|
- <slot name="action"></slot>
|
|
13
|
+
|
10
|
14
|
</div>
|
11
|
15
|
|
12
|
16
|
</div>
|
|
@@ -32,7 +36,8 @@ export default {
|
32
|
36
|
showFireflies: {
|
33
|
37
|
type: Boolean,
|
34
|
38
|
default: true
|
35
|
|
- }
|
|
39
|
+ },
|
|
40
|
+ showShare: Boolean
|
36
|
41
|
},
|
37
|
42
|
computed: {
|
38
|
43
|
modalStyle() {
|
|
@@ -68,8 +73,12 @@ export default {
|
68
|
73
|
justify-content: center;
|
69
|
74
|
align-items: center;
|
70
|
75
|
|
71
|
|
- .back-btn {
|
|
76
|
+ .modal-action {
|
72
|
77
|
position: absolute;
|
|
78
|
+ z-index: 50;
|
|
79
|
+ }
|
|
80
|
+
|
|
81
|
+ .back-btn {
|
73
|
82
|
top: 4em;
|
74
|
83
|
left: 1.5em;
|
75
|
84
|
width: 4em;
|
|
@@ -79,9 +88,19 @@ export default {
|
79
|
88
|
}
|
80
|
89
|
}
|
81
|
90
|
|
|
91
|
+ .share-guide {
|
|
92
|
+ top: 0.5em;
|
|
93
|
+ right: 0em;
|
|
94
|
+ width: 3em;
|
|
95
|
+
|
|
96
|
+ & > img {
|
|
97
|
+ width: 100%;
|
|
98
|
+ }
|
|
99
|
+ }
|
|
100
|
+
|
82
|
101
|
.modal-body {
|
83
|
102
|
position: relative;
|
84
|
|
- z-index: 100;
|
|
103
|
+ z-index: 20;
|
85
|
104
|
}
|
86
|
105
|
}
|
87
|
106
|
}
|