dpzvc-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/build-style.js +42 -0
- package/dist/dpzvc.js +17605 -0
- package/dist/styles/dpzvc.css +1 -0
- package/dist-prod/index.html +26 -0
- package/dist-prod/main.js +1 -0
- package/dist-prod/vendor.bundle.js +1 -0
- package/package.json +88 -0
- package/src/components/Indicator/Indicator.vue +77 -0
- package/src/components/Indicator/index.js +153 -0
- package/src/components/Text/Number.vue +201 -0
- package/src/components/Text/index.js +7 -0
- package/src/components/Text/textBar.vue +142 -0
- package/src/components/action-sheet/actionSheet.vue +91 -0
- package/src/components/action-sheet/index.js +5 -0
- package/src/components/app.vue +66 -0
- package/src/components/badge/badge.vue +77 -0
- package/src/components/badge/index.js +5 -0
- package/src/components/button/button.vue +122 -0
- package/src/components/button/index.js +5 -0
- package/src/components/card/card.vue +59 -0
- package/src/components/card/index.js +5 -0
- package/src/components/cell/cell.vue +103 -0
- package/src/components/cell/index.js +5 -0
- package/src/components/cell-swipe/cell-swipe.vue +148 -0
- package/src/components/cell-swipe/index.js +5 -0
- package/src/components/checkBox/checkbox-group.vue +76 -0
- package/src/components/checkBox/checkbox.vue +107 -0
- package/src/components/checkBox/index.js +8 -0
- package/src/components/header/header.vue +82 -0
- package/src/components/header/index.js +5 -0
- package/src/components/loadMore/index.js +5 -0
- package/src/components/loadMore/loadmore.vue +293 -0
- package/src/components/message/confirm.js +52 -0
- package/src/components/message/index.js +132 -0
- package/src/components/message/message.vue +135 -0
- package/src/components/message/messageGroup.vue +74 -0
- package/src/components/modal/confirm.js +161 -0
- package/src/components/modal/index.js +63 -0
- package/src/components/modal/modal.vue +144 -0
- package/src/components/picker/area-picker/area-picker.vue +223 -0
- package/src/components/picker/area-picker/props.js +17 -0
- package/src/components/picker/date-picker/date-picker.vue +291 -0
- package/src/components/picker/date-picker/props.js +24 -0
- package/src/components/picker/index.js +5 -0
- package/src/components/picker/normal-picker/normal-picker.vue +107 -0
- package/src/components/picker/normal-picker/props.js +20 -0
- package/src/components/picker/picker-slot.vue +206 -0
- package/src/components/picker/picker.vue +111 -0
- package/src/components/popup/index.js +5 -0
- package/src/components/popup/popup.vue +117 -0
- package/src/components/progress/index.js +5 -0
- package/src/components/progress/progress.vue +77 -0
- package/src/components/prompt/confirm.js +174 -0
- package/src/components/prompt/index.js +50 -0
- package/src/components/prompt/prompt.vue +166 -0
- package/src/components/radioBox/index.js +8 -0
- package/src/components/radioBox/radiobox-group.vue +74 -0
- package/src/components/radioBox/radiobox.vue +117 -0
- package/src/components/rater/index.js +5 -0
- package/src/components/rater/rater.vue +164 -0
- package/src/components/slideBar/index.js +6 -0
- package/src/components/slideBar/slideBar.vue +269 -0
- package/src/components/spinner/behavior/blade.vue +22 -0
- package/src/components/spinner/behavior/double-bounce.vue +22 -0
- package/src/components/spinner/behavior/fading-circle.vue +37 -0
- package/src/components/spinner/behavior/snake.vue +32 -0
- package/src/components/spinner/behavior/triple-bounce.vue +41 -0
- package/src/components/spinner/index.js +5 -0
- package/src/components/spinner/props.js +25 -0
- package/src/components/spinner/spinner.vue +74 -0
- package/src/components/swipe/index.js +5 -0
- package/src/components/swipe/swipe.vue +399 -0
- package/src/components/switchbar/index.js +5 -0
- package/src/components/switchbar/switchbar.vue +83 -0
- package/src/components/tab/index.js +6 -0
- package/src/components/tab/tab.vue +95 -0
- package/src/components/toTop/index.js +5 -0
- package/src/components/toTop/topTop.vue +76 -0
- package/src/components/upload/index.js +5 -0
- package/src/components/upload/upload.vue +200 -0
- package/src/config/config.js +17 -0
- package/src/directives/clickoutside.js +32 -0
- package/src/directives/tranferDom.js +65 -0
- package/src/index.js +83 -0
- package/src/lib/MegaPixImage.js +253 -0
- package/src/lib/exif.js +808 -0
- package/src/main.js +76 -0
- package/src/mixin/emitter.js +41 -0
- package/src/mixin/input.js +41 -0
- package/src/router.js +229 -0
- package/src/styles/base/font.less +99 -0
- package/src/styles/base/reset.less +69 -0
- package/src/styles/base/variable.less +108 -0
- package/src/styles/components/actionSheet.less +43 -0
- package/src/styles/components/badge.less +79 -0
- package/src/styles/components/button.less +123 -0
- package/src/styles/components/card.less +31 -0
- package/src/styles/components/cell-swipe.less +20 -0
- package/src/styles/components/cell.less +71 -0
- package/src/styles/components/checkBox.less +111 -0
- package/src/styles/components/editor.less +3 -0
- package/src/styles/components/header.less +70 -0
- package/src/styles/components/indicator.less +37 -0
- package/src/styles/components/loadmore.less +48 -0
- package/src/styles/components/message.less +57 -0
- package/src/styles/components/modal.less +82 -0
- package/src/styles/components/number.less +58 -0
- package/src/styles/components/picker.less +150 -0
- package/src/styles/components/popup.less +46 -0
- package/src/styles/components/progress.less +50 -0
- package/src/styles/components/prompt.less +37 -0
- package/src/styles/components/radioBox.less +136 -0
- package/src/styles/components/slide-Bar.less +147 -0
- package/src/styles/components/spinner.less +328 -0
- package/src/styles/components/swipe.less +125 -0
- package/src/styles/components/switchBar.less +88 -0
- package/src/styles/components/tab.less +69 -0
- package/src/styles/components/text.less +80 -0
- package/src/styles/components/toTop.less +26 -0
- package/src/styles/components/upload.less +23 -0
- package/src/styles/index.less +38 -0
- package/src/styles/utils/1px.less +204 -0
- package/src/styles/utils/animation.less +131 -0
- package/src/styles/utils/nowrap.less +19 -0
- package/src/template/index.ejs +26 -0
- package/src/utils/util.js +203 -0
- package/src/vconsole-resources.min.js +6 -0
- package/src/vconsole-sources.min.js +6 -0
- package/src/vconsole.min.js +7 -0
- package/src/views/ActionSheet.vue +33 -0
- package/src/views/Badge.vue +40 -0
- package/src/views/Button.vue +40 -0
- package/src/views/Card.vue +52 -0
- package/src/views/Cell.vue +21 -0
- package/src/views/CellSwipe.vue +85 -0
- package/src/views/CheckBox.vue +53 -0
- package/src/views/Header.vue +47 -0
- package/src/views/Indicator.vue +69 -0
- package/src/views/LoadMore.vue +54 -0
- package/src/views/Message.vue +42 -0
- package/src/views/Modal.vue +32 -0
- package/src/views/Picker.vue +50 -0
- package/src/views/Popup.vue +87 -0
- package/src/views/Progress.vue +32 -0
- package/src/views/Prompt.vue +31 -0
- package/src/views/RadioBox.vue +55 -0
- package/src/views/Rater.vue +39 -0
- package/src/views/SlideBar.vue +47 -0
- package/src/views/Spinner.vue +15 -0
- package/src/views/Swipe.vue +34 -0
- package/src/views/SwitchBar.vue +36 -0
- package/src/views/Tab.vue +41 -0
- package/src/views/Text.vue +64 -0
- package/src/views/ToTop.vue +17 -0
- package/src/views/Upload.vue +44 -0
- package/src/views/guide.vue +159 -0
- package/src/views/index.vue +435 -0
- package/webpack.base.config.js +74 -0
- package/webpack.dev.config.js +67 -0
- package/webpack.dist.dev.config.js +44 -0
- package/webpack.dist.prod.config.js +50 -0
- package/webpack.prod.config.js +72 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// spinner.less - 完整可用版本(无 unit()/round(),可直接编译)
|
|
2
|
+
@SpinnerSize: 28px;
|
|
3
|
+
@SpinnerColor: #ccc;
|
|
4
|
+
|
|
5
|
+
// ---------- Blade Spinner ----------
|
|
6
|
+
.dpzvc-spinner-blade {
|
|
7
|
+
position: relative;
|
|
8
|
+
height: @SpinnerSize;
|
|
9
|
+
width: @SpinnerSize;
|
|
10
|
+
|
|
11
|
+
.blade {
|
|
12
|
+
position: absolute;
|
|
13
|
+
left: 44.5%;
|
|
14
|
+
top: 37%;
|
|
15
|
+
width: 10%;
|
|
16
|
+
height: 25%;
|
|
17
|
+
border-radius: ~'50% / 20%';
|
|
18
|
+
animation: dpzvc-spinner-blade 1s linear infinite;
|
|
19
|
+
background-color: @SpinnerColor;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.blade-0 {
|
|
23
|
+
transform: rotate(30deg) translate(0, -150%);
|
|
24
|
+
animation-delay: -1.6667s;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.blade-1 {
|
|
28
|
+
transform: rotate(60deg) translate(0, -150%);
|
|
29
|
+
animation-delay: -1.5s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.blade-2 {
|
|
33
|
+
transform: rotate(90deg) translate(0, -150%);
|
|
34
|
+
animation-delay: -1.3333s;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.blade-3 {
|
|
38
|
+
transform: rotate(120deg) translate(0, -150%);
|
|
39
|
+
animation-delay: -1.1667s;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.blade-4 {
|
|
43
|
+
transform: rotate(150deg) translate(0, -150%);
|
|
44
|
+
animation-delay: -1s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.blade-5 {
|
|
48
|
+
transform: rotate(180deg) translate(0, -150%);
|
|
49
|
+
animation-delay: -0.8333s;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.blade-6 {
|
|
53
|
+
transform: rotate(210deg) translate(0, -150%);
|
|
54
|
+
animation-delay: -0.6667s;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.blade-7 {
|
|
58
|
+
transform: rotate(240deg) translate(0, -150%);
|
|
59
|
+
animation-delay: -0.5s;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.blade-8 {
|
|
63
|
+
transform: rotate(270deg) translate(0, -150%);
|
|
64
|
+
animation-delay: -0.3333s;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.blade-9 {
|
|
68
|
+
transform: rotate(300deg) translate(0, -150%);
|
|
69
|
+
animation-delay: -0.1667s;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.blade-10 {
|
|
73
|
+
transform: rotate(330deg) translate(0, -150%);
|
|
74
|
+
animation-delay: 0s;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.blade-11 {
|
|
78
|
+
transform: rotate(360deg) translate(0, -150%);
|
|
79
|
+
animation-delay: 0.1667s;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes dpzvc-spinner-blade {
|
|
84
|
+
0% {
|
|
85
|
+
opacity: 0.85;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
50% {
|
|
89
|
+
opacity: 0.25;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
100% {
|
|
93
|
+
opacity: 0.25;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// ---------- Double Bounce Spinner ----------
|
|
98
|
+
.dpzvc-spinner-double-bounce {
|
|
99
|
+
position: relative;
|
|
100
|
+
height: @SpinnerSize;
|
|
101
|
+
width: @SpinnerSize;
|
|
102
|
+
|
|
103
|
+
.bounce {
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
border-radius: 50%;
|
|
107
|
+
opacity: 0.6;
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
animation: dpzvc-spinner-double-bounce 2s infinite ease-in-out;
|
|
112
|
+
background-color: @SpinnerColor;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bounce-1 {
|
|
116
|
+
animation-delay: -1s;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@keyframes dpzvc-spinner-double-bounce {
|
|
121
|
+
|
|
122
|
+
0%,
|
|
123
|
+
100% {
|
|
124
|
+
transform: scale(0);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
50% {
|
|
128
|
+
transform: scale(1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// ---------- Triple Bounce Spinner ----------
|
|
133
|
+
@unitSize: @SpinnerSize / 3; // 28px / 3 = 9.3333px
|
|
134
|
+
|
|
135
|
+
.dpzvc-spinner-triple-bounce {
|
|
136
|
+
font-size: 0;
|
|
137
|
+
padding: (@SpinnerSize - @unitSize) / 2 0;
|
|
138
|
+
|
|
139
|
+
.bounce {
|
|
140
|
+
border-radius: 100%;
|
|
141
|
+
display: inline-block;
|
|
142
|
+
animation: dpzvc-spinner-triple-bounce 1.4s infinite ease-in-out both;
|
|
143
|
+
background-color: @SpinnerColor;
|
|
144
|
+
width: @unitSize;
|
|
145
|
+
height: @unitSize;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.bounce-0 {
|
|
149
|
+
animation-delay: -0.32s;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.bounce-1 {
|
|
153
|
+
animation-delay: -0.16s;
|
|
154
|
+
margin: 0 (@unitSize * 0.4);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes dpzvc-spinner-triple-bounce {
|
|
159
|
+
|
|
160
|
+
0%,
|
|
161
|
+
80%,
|
|
162
|
+
100% {
|
|
163
|
+
transform: scale(0);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
40% {
|
|
167
|
+
transform: scale(1);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// ---------- Fading Circle Spinner ----------
|
|
172
|
+
.dpzvc-spinner-fading-circle {
|
|
173
|
+
position: relative;
|
|
174
|
+
height: @SpinnerSize;
|
|
175
|
+
width: @SpinnerSize;
|
|
176
|
+
|
|
177
|
+
.block {
|
|
178
|
+
position: absolute;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
left: 0;
|
|
182
|
+
top: 0;
|
|
183
|
+
|
|
184
|
+
.circle {
|
|
185
|
+
margin: 0 auto;
|
|
186
|
+
width: 15%;
|
|
187
|
+
height: 15%;
|
|
188
|
+
border-radius: 100%;
|
|
189
|
+
animation: dpzvc-spinner-fading-circle 1.2s infinite ease-in-out both;
|
|
190
|
+
background-color: @SpinnerColor;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// 写死 12 个 block 类
|
|
195
|
+
.block-0 {
|
|
196
|
+
transform: rotate(0deg);
|
|
197
|
+
|
|
198
|
+
.circle-0 {
|
|
199
|
+
animation-delay: -1.2s;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.block-1 {
|
|
204
|
+
transform: rotate(30deg);
|
|
205
|
+
|
|
206
|
+
.circle-1 {
|
|
207
|
+
animation-delay: -1.1s;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.block-2 {
|
|
212
|
+
transform: rotate(60deg);
|
|
213
|
+
|
|
214
|
+
.circle-2 {
|
|
215
|
+
animation-delay: -1s;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.block-3 {
|
|
220
|
+
transform: rotate(90deg);
|
|
221
|
+
|
|
222
|
+
.circle-3 {
|
|
223
|
+
animation-delay: -0.9s;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.block-4 {
|
|
228
|
+
transform: rotate(120deg);
|
|
229
|
+
|
|
230
|
+
.circle-4 {
|
|
231
|
+
animation-delay: -0.8s;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.block-5 {
|
|
236
|
+
transform: rotate(150deg);
|
|
237
|
+
|
|
238
|
+
.circle-5 {
|
|
239
|
+
animation-delay: -0.7s;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.block-6 {
|
|
244
|
+
transform: rotate(180deg);
|
|
245
|
+
|
|
246
|
+
.circle-6 {
|
|
247
|
+
animation-delay: -0.6s;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.block-7 {
|
|
252
|
+
transform: rotate(210deg);
|
|
253
|
+
|
|
254
|
+
.circle-7 {
|
|
255
|
+
animation-delay: -0.5s;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.block-8 {
|
|
260
|
+
transform: rotate(240deg);
|
|
261
|
+
|
|
262
|
+
.circle-8 {
|
|
263
|
+
animation-delay: -0.4s;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.block-9 {
|
|
268
|
+
transform: rotate(270deg);
|
|
269
|
+
|
|
270
|
+
.circle-9 {
|
|
271
|
+
animation-delay: -0.3s;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.block-10 {
|
|
276
|
+
transform: rotate(300deg);
|
|
277
|
+
|
|
278
|
+
.circle-10 {
|
|
279
|
+
animation-delay: -0.2s;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.block-11 {
|
|
284
|
+
transform: rotate(330deg);
|
|
285
|
+
|
|
286
|
+
.circle-11 {
|
|
287
|
+
animation-delay: -0.1s;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@keyframes dpzvc-spinner-fading-circle {
|
|
293
|
+
|
|
294
|
+
0%,
|
|
295
|
+
39%,
|
|
296
|
+
100% {
|
|
297
|
+
opacity: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
40% {
|
|
301
|
+
opacity: 1;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// ---------- Snake Spinner ----------
|
|
306
|
+
.dpzvc-spinner-snake {
|
|
307
|
+
animation: dpzvc-spinner-snake 0.8s infinite linear;
|
|
308
|
+
border-style: solid;
|
|
309
|
+
border-color: transparent;
|
|
310
|
+
border-radius: 50%;
|
|
311
|
+
box-sizing: border-box;
|
|
312
|
+
height: @SpinnerSize;
|
|
313
|
+
width: @SpinnerSize;
|
|
314
|
+
border-width: @SpinnerSize / 8;
|
|
315
|
+
border-top-color: @SpinnerColor;
|
|
316
|
+
border-left-color: @SpinnerColor;
|
|
317
|
+
border-bottom-color: @SpinnerColor;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@keyframes dpzvc-spinner-snake {
|
|
321
|
+
0% {
|
|
322
|
+
transform: rotate(0deg);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
100% {
|
|
326
|
+
transform: rotate(360deg);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.dpzvc-swipe {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
height: auto;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
|
|
7
|
+
&-wrapper {
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
left: 0;
|
|
11
|
+
top: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
transition: transform .2s ease-out;
|
|
15
|
+
will-change: transform;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-item {
|
|
23
|
+
flex: 1;
|
|
24
|
+
|
|
25
|
+
&.multiple {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
>img {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 80%;
|
|
36
|
+
object-fit: cover;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
>span {
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
line-height: 25px;
|
|
43
|
+
text-align: center;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-single {
|
|
49
|
+
display: block;
|
|
50
|
+
|
|
51
|
+
>img {
|
|
52
|
+
display: block;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 80%;
|
|
55
|
+
object-fit: cover;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
>span {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
line-height: 25px;
|
|
62
|
+
text-align: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-multiple {
|
|
68
|
+
display: block;
|
|
69
|
+
flex: 1;
|
|
70
|
+
height: 100%;
|
|
71
|
+
|
|
72
|
+
>img {
|
|
73
|
+
display: block;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 80%;
|
|
76
|
+
object-fit: cover;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
>span {
|
|
80
|
+
display: block;
|
|
81
|
+
width: 100%;
|
|
82
|
+
line-height: 25px;
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-dragging {
|
|
88
|
+
transition: none;
|
|
89
|
+
will-change: none
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-dots {
|
|
93
|
+
position: absolute;
|
|
94
|
+
left: 0;
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
align-items: center;
|
|
100
|
+
|
|
101
|
+
&-item {
|
|
102
|
+
margin: 0 2px;
|
|
103
|
+
background: #ffffff;
|
|
104
|
+
opacity: 0.3;
|
|
105
|
+
width: 7px;
|
|
106
|
+
height: 7px;
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
display: inline-block;
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-bottom {
|
|
113
|
+
bottom: 20px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-top {
|
|
117
|
+
top: 20px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dpzvc-swipe-dots-item.active {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.dpzvc-switch-ui {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 35px;
|
|
4
|
+
height: 20px;
|
|
5
|
+
background: #ccc;
|
|
6
|
+
border-radius: 100px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
-webkit-transition: all .3s ease;
|
|
10
|
+
-moz-transition: all .3s ease;
|
|
11
|
+
transition: all .3s ease;
|
|
12
|
+
|
|
13
|
+
&.small {
|
|
14
|
+
width: 24px;
|
|
15
|
+
height: 14px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:after {
|
|
19
|
+
content: '';
|
|
20
|
+
display: block;
|
|
21
|
+
width: 18px;
|
|
22
|
+
height: 18px;
|
|
23
|
+
border-radius: 100px;
|
|
24
|
+
background: #fff;
|
|
25
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 1px;
|
|
28
|
+
top: 1px;
|
|
29
|
+
-webkit-transition: all .3s ease;
|
|
30
|
+
-moz-transition: all .3s ease;
|
|
31
|
+
transition: all .3s ease;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
&.small:after {
|
|
36
|
+
width: 12px;
|
|
37
|
+
height: 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active:after {
|
|
41
|
+
width: 24px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.small:active:after {
|
|
45
|
+
width: 16px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.dpzvc-switch-checkbox:checked~label {
|
|
57
|
+
background: #39f;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dpzvc-switch-checkbox:checked~label:after {
|
|
61
|
+
left: 16px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dpzvc-switch-checkbox:checked~label:active:after {
|
|
65
|
+
left: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.dpzvc-switch-checkbox:checked~label.small:after {
|
|
70
|
+
left: 11px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dpzvc-switch-checkbox:checked~label.small:active:after {
|
|
74
|
+
left: 7px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dpzvc-switch-checkbox:disabled~label {
|
|
78
|
+
background: #d5d5d5;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dpzvc-switch-checkbox:disabled~label:after {
|
|
83
|
+
background: #bcbdbc;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dpzvc-switch-checkbox.hidden {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.dpzvc-tab {
|
|
2
|
+
background: @TabBgColor;
|
|
3
|
+
position: absolute;
|
|
4
|
+
height: @TabHeight;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
box-sizing: content-box;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ul {
|
|
12
|
+
display: flex;
|
|
13
|
+
height: 100%;
|
|
14
|
+
|
|
15
|
+
li {
|
|
16
|
+
position: relative;
|
|
17
|
+
flex: 1;
|
|
18
|
+
width: 0%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
color: @TabTxtColor;
|
|
21
|
+
font-size: @TabTxtSize;
|
|
22
|
+
line-height: @TabTxtSize;
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
width: 100%;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
left: 50%;
|
|
30
|
+
transform: translate3d(-50%, -50%, 0);
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: #666666;
|
|
34
|
+
|
|
35
|
+
i {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
font-size: 22px;
|
|
38
|
+
line-height: 1;
|
|
39
|
+
margin-top: 2px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
span {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
text-align: center;
|
|
48
|
+
line-height: 23px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
p {
|
|
52
|
+
width: 100%;
|
|
53
|
+
display: inline-block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
&.cur {
|
|
58
|
+
color: @TabTxtColorCur;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.dpzvc-textBar {
|
|
2
|
+
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
|
|
6
|
+
&-input {
|
|
7
|
+
width: 100%;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
|
|
10
|
+
&>input {
|
|
11
|
+
border: 1px solid @TextBorderColor;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
height: @TextInputHeight;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding-left: 10px;
|
|
17
|
+
color: @TextColor;
|
|
18
|
+
transition: all .2s linear;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&>input:focus {
|
|
22
|
+
|
|
23
|
+
border-color: @ThemeColor;
|
|
24
|
+
box-shadow: 0 0 2px @ThemeColor
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&>input::placeholder {
|
|
28
|
+
color: @TextPlaceholderColor;
|
|
29
|
+
font-family: "Microsoft Tai Le";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
&-textarea {
|
|
35
|
+
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
|
|
39
|
+
&>textarea {
|
|
40
|
+
width: 100%;
|
|
41
|
+
padding: 10px 5px;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
height: @TextAreaHeight;
|
|
44
|
+
border: 1px solid @TextBorderColor;
|
|
45
|
+
border-radius: 0;
|
|
46
|
+
color: @TextColor;
|
|
47
|
+
transition: border-color .2s linear;
|
|
48
|
+
will-change: border-color;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&>textarea:focus {
|
|
53
|
+
border-color: #39f;
|
|
54
|
+
box-shadow: 0 0 2px #39f
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&>textarea::placeholder {
|
|
58
|
+
color: #e5e5e5;
|
|
59
|
+
font-family: "Microsoft Tai Le";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
&-tip {
|
|
66
|
+
flex: 1;
|
|
67
|
+
align-self: center;
|
|
68
|
+
text-indent: 3px;
|
|
69
|
+
line-height: 1;
|
|
70
|
+
font-size: 12px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-tip.success {
|
|
74
|
+
color: lightgreen;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-tip.error {
|
|
78
|
+
color: red;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.dpzvc-toTop {
|
|
2
|
+
position: fixed;
|
|
3
|
+
right: 15px;
|
|
4
|
+
bottom: 80px;
|
|
5
|
+
z-index: 100;
|
|
6
|
+
|
|
7
|
+
&-wrapper {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 45px;
|
|
10
|
+
height: 45px;
|
|
11
|
+
border-radius: 100%;
|
|
12
|
+
background: @ThemeColor;
|
|
13
|
+
|
|
14
|
+
&:before {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 50%;
|
|
17
|
+
top: 50%;
|
|
18
|
+
content: '';
|
|
19
|
+
border-top: 2px solid #ffffff;
|
|
20
|
+
border-right: 2px solid #ffffff;
|
|
21
|
+
transform: rotate(-45deg) translate3d(-15%, -60%, 0);
|
|
22
|
+
height: 15px;
|
|
23
|
+
width: 15px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.dpzvc-upload {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
&-wrapper {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background: #39f;
|
|
8
|
+
color: #ffffff;
|
|
9
|
+
line-height: 50px;
|
|
10
|
+
text-align: center;
|
|
11
|
+
border-radius: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input[type=file] {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|