10
10
<a target =" _blank" href =" https://hammerjs.github.io/" >Hammer.js</a >
11
11
</p >
12
12
<h3 class =" mb-3" >Settings</h3 >
13
-
13
+ < hr style = " opacity : 0.1 " >
14
14
<div class =" row" >
15
- <div class =" col-sm -4 col-12" >
15
+ <div class =" col-md -4 col-12" >
16
16
<div class =" form-check form-switch mb-3" >
17
17
<input
18
18
class =" form-check-input"
49
49
>Rounded top corners</label
50
50
>
51
51
</div >
52
+ <div class =" form-check form-switch mb-3" >
53
+ <input
54
+ class =" form-check-input"
55
+ type =" checkbox"
56
+ id =" swipeSwitchCheckChecked"
57
+ v-model =" swipeAble"
58
+ checked
59
+ />
60
+ <label class =" form-check-label" for =" swipeSwitchCheckChecked"
61
+ >Swipe Able</label
62
+ >
63
+ </div >
64
+ <div class =" form-check form-switch mb-3" >
65
+ <input
66
+ class =" form-check-input"
67
+ type =" checkbox"
68
+ id =" fullscreenSwitchCheckChecked"
69
+ v-model =" isFullScreen"
70
+ />
71
+ <label class =" form-check-label" for =" fullscreenSwitchCheckChecked"
72
+ >Full Screen</label
73
+ >
74
+ </div >
75
+ </div >
76
+ <div class =" col-md-4 col-12" >
77
+ <div class =" mb-3" >
78
+ <h6 > Overlay Color</h6 >
79
+ <sketch-picker v-model =" overlayColorSelect" />
80
+ </div >
81
+ </div >
82
+ <div class =" col-md-4 col-12" >
83
+
52
84
<div class =" form-group mb-3" >
53
85
<label for =" maxWidthInput" class =" form-label" >Max width:</label >
54
86
<input
80
112
<option selected value =" fx-default" >fx-default</option >
81
113
<option selected value =" fx-fadein-scale" >fx-fadein-scale</option >
82
114
<option selected value =" fx-slide-from-right"
83
- >fx-slide-from-right</option
115
+ >fx-slide-from-right
116
+ </option
84
117
>
85
118
<option selected value =" fx-slide-from-left"
86
- >fx-slide-from-left</option
119
+ >fx-slide-from-left
120
+ </option
87
121
>
88
122
</select >
89
123
</div >
99
133
:click-to-close =" clickToClose"
100
134
:effect =" effect"
101
135
:rounded =" rounded"
136
+ :swipeAble =" swipeAble"
137
+ :overlayColor =" overlyHexColor"
138
+ :isFullScreen =" isFullScreen"
102
139
ref =" myBottomSheet"
103
140
>
104
141
<div class =" sheet-content" >
109
146
inventore iste minima, non quibusdam quisquam quos velit veritatis
110
147
voluptatem?
111
148
</p >
149
+ <p >
150
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime
151
+ neque sed tempore ullam. Accusamus animi at autem beatae est, hic
152
+ inventore iste minima, non quibusdam quisquam quos velit veritatis
153
+ voluptatem?
154
+ </p >
155
+ <p >
156
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime
157
+ neque sed tempore ullam. Accusamus animi at autem beatae est, hic
158
+ inventore iste minima, non quibusdam quisquam quos velit veritatis
159
+ voluptatem?
160
+ </p >
161
+ <p >
162
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime
163
+ neque sed tempore ullam. Accusamus animi at autem beatae est, hic
164
+ inventore iste minima, non quibusdam quisquam quos velit veritatis
165
+ voluptatem?
166
+ </p >
112
167
<h2 >
113
168
Lorem Ipsum
114
169
</h2 >
130
185
<script >
131
186
import Vue from ' vue' ;
132
187
import VueBottomSheet from ' @/vue-bottom-sheet.vue' ;
188
+ import sketch from ' vue-color/src/components/Chrome'
133
189
134
190
export default Vue .extend ({
135
191
name: ' ServeDev' ,
192
+
136
193
data () {
137
194
return {
138
195
overlay: true ,
139
196
maxWidth: " 640px" ,
140
197
maxHeight: " 90%" ,
141
198
clickToClose: true ,
142
199
effect: " fx-default" ,
143
- rounded: true
200
+ rounded: true ,
201
+ swipeAble: true ,
202
+ isFullScreen: false ,
203
+ overlayColorSelect: " #0000004D"
144
204
};
145
205
},
146
206
components: {
147
- VueBottomSheet
207
+ VueBottomSheet,
208
+ ' sketch-picker' : sketch,
148
209
},
149
210
methods: {
150
211
open () {
@@ -153,12 +214,19 @@ export default Vue.extend({
153
214
close () {
154
215
this .$refs .myBottomSheet .close ();
155
216
}
217
+ },
218
+ computed: {
219
+ overlyHexColor () {
220
+ if (this .overlayColorSelect != null )
221
+ return this .overlayColorSelect .hex8 ;
222
+ }
156
223
}
157
224
});
158
225
</script >
159
226
160
227
<style >
161
228
@import " https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" ;
229
+
162
230
.sheet-content {
163
231
padding : 20px ;
164
232
}
0 commit comments