unika-components 1.0.187 → 1.0.189
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.
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
musicSrc: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
2
|
+
[x: string]: any;
|
|
10
3
|
}, {
|
|
11
4
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
12
5
|
handleClick: () => void;
|
|
13
|
-
isPlaying: import("vue").Ref<
|
|
6
|
+
isPlaying: import("vue").Ref<any>;
|
|
14
7
|
togglePlay: () => void;
|
|
15
8
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
musicSrc: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
9
|
+
[x: string]: any;
|
|
24
10
|
}>>, {
|
|
25
|
-
|
|
26
|
-
musicSrc: string;
|
|
11
|
+
[x: string]: any;
|
|
27
12
|
}, {}>;
|
|
28
13
|
export default _default;
|
|
@@ -202,28 +202,11 @@ export declare const backgroundDefaultProps: {
|
|
|
202
202
|
display: string;
|
|
203
203
|
};
|
|
204
204
|
export declare const musicDefaultProps: {
|
|
205
|
-
actionType: string;
|
|
206
|
-
url: string;
|
|
207
|
-
height: string;
|
|
208
|
-
width: string;
|
|
209
|
-
paddingLeft: string;
|
|
210
|
-
paddingRight: string;
|
|
211
|
-
paddingTop: string;
|
|
212
|
-
paddingBottom: string;
|
|
213
|
-
borderStyle: string;
|
|
214
|
-
borderColor: string;
|
|
215
|
-
borderWidth: string;
|
|
216
|
-
borderRadius: string;
|
|
217
|
-
boxShadow: string;
|
|
218
|
-
opacity: number;
|
|
219
|
-
position: string;
|
|
220
|
-
left: string;
|
|
221
|
-
top: string;
|
|
222
|
-
right: string;
|
|
223
|
-
transform: string;
|
|
224
205
|
musicSrc: string;
|
|
225
206
|
name: string;
|
|
226
207
|
isPlaying: boolean;
|
|
208
|
+
icon: string;
|
|
209
|
+
backgroundColor: string;
|
|
227
210
|
};
|
|
228
211
|
export declare const videoDefaultProps: {
|
|
229
212
|
left: string;
|
|
@@ -562,28 +545,11 @@ export declare const componentsDefaultProps: {
|
|
|
562
545
|
};
|
|
563
546
|
'uni-music': {
|
|
564
547
|
props: {
|
|
565
|
-
actionType: string;
|
|
566
|
-
url: string;
|
|
567
|
-
height: string;
|
|
568
|
-
width: string;
|
|
569
|
-
paddingLeft: string;
|
|
570
|
-
paddingRight: string;
|
|
571
|
-
paddingTop: string;
|
|
572
|
-
paddingBottom: string;
|
|
573
|
-
borderStyle: string;
|
|
574
|
-
borderColor: string;
|
|
575
|
-
borderWidth: string;
|
|
576
|
-
borderRadius: string;
|
|
577
|
-
boxShadow: string;
|
|
578
|
-
opacity: number;
|
|
579
|
-
position: string;
|
|
580
|
-
left: string;
|
|
581
|
-
top: string;
|
|
582
|
-
right: string;
|
|
583
|
-
transform: string;
|
|
584
548
|
musicSrc: string;
|
|
585
549
|
name: string;
|
|
586
550
|
isPlaying: boolean;
|
|
551
|
+
icon: string;
|
|
552
|
+
backgroundColor: string;
|
|
587
553
|
};
|
|
588
554
|
};
|
|
589
555
|
'uni-video': {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import UniShape from './components/UniShape';
|
|
|
5
5
|
import LongPage from './components/LongPage';
|
|
6
6
|
import SwiperPage from './components/SwiperPage';
|
|
7
7
|
import UniBackground from './components/UniBackground';
|
|
8
|
+
import UniMusic from './components/UniMusic';
|
|
8
9
|
import UniVideo from './components/UniVideo';
|
|
9
10
|
import UniCalendar from './components/UniCalendar';
|
|
10
11
|
import UniCountdown from './components/UniCountdown';
|
|
@@ -20,7 +21,7 @@ import UniBulidUp from './components/UniBulidUp';
|
|
|
20
21
|
import UniTest from './components/UniTest';
|
|
21
22
|
import UniSvg from './components/UniSvg';
|
|
22
23
|
declare const install: (app: App) => void;
|
|
23
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniSwiper, UniButton, UniBulidUp, UniSvg, UniTest, install };
|
|
24
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniSwiper, UniButton, UniBulidUp, UniSvg, UniTest, install };
|
|
24
25
|
declare const _default: {
|
|
25
26
|
install: (app: App<any>) => void;
|
|
26
27
|
};
|
|
@@ -1,7 +1,53 @@
|
|
|
1
1
|
|
|
2
|
+
h2.uni-text-component, p.uni-text-component {
|
|
3
|
+
margin-bottom: 0;
|
|
4
|
+
}
|
|
5
|
+
button.uni-text-component {
|
|
6
|
+
padding: 5px 10px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
.uni-text-component {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
white-space: pre-wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
.uni-calendar-component {
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
.slot-number {
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 2px;
|
|
21
|
+
left: 7px;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
color: #666
|
|
24
|
+
}
|
|
25
|
+
|
|
2
26
|
.uni-image-component {
|
|
3
27
|
max-width: 100%;
|
|
4
28
|
}
|
|
29
|
+
|
|
30
|
+
.like-button {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.icon-heart {
|
|
38
|
+
font-size: 24px;
|
|
39
|
+
color: #e74c3c;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.liked {
|
|
43
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.like-count {
|
|
47
|
+
margin-top: 4px;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
color: #333;
|
|
50
|
+
}
|
|
5
51
|
|
|
6
52
|
.slide-guide {
|
|
7
53
|
position: absolute;
|
|
@@ -96,29 +142,19 @@ body, html {
|
|
|
96
142
|
.play-pause-button:hover {
|
|
97
143
|
background: rgba(0, 0, 0, 0.8);
|
|
98
144
|
}
|
|
99
|
-
|
|
100
|
-
h2.uni-text-component, p.uni-text-component {
|
|
101
|
-
margin-bottom: 0;
|
|
102
|
-
}
|
|
103
|
-
button.uni-text-component {
|
|
104
|
-
padding: 5px 10px;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
}
|
|
107
|
-
.uni-text-component {
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
white-space: pre-wrap;
|
|
110
|
-
}
|
|
111
145
|
|
|
146
|
+
.swiper-warp {
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
}
|
|
112
150
|
|
|
113
|
-
.
|
|
114
|
-
|
|
151
|
+
.swiper-slide-component {
|
|
152
|
+
text-align: center;
|
|
115
153
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
font-size: 12px;
|
|
121
|
-
color: #666
|
|
154
|
+
|
|
155
|
+
.swiper-slide img {
|
|
156
|
+
max-width: 100%;
|
|
157
|
+
max-height: 100%;
|
|
122
158
|
}
|
|
123
159
|
|
|
124
160
|
.effect {
|
|
@@ -126,6 +162,135 @@ button.uni-text-component {
|
|
|
126
162
|
height: 100%;
|
|
127
163
|
}
|
|
128
164
|
|
|
165
|
+
.uni-build-up-component {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
#talkbubble {
|
|
169
|
+
width: 70.1562px;
|
|
170
|
+
height: 22.1562px;
|
|
171
|
+
padding: 2px 2px 2px 7px;
|
|
172
|
+
font-size: 15px;
|
|
173
|
+
right: 20%;
|
|
174
|
+
top: 3%;
|
|
175
|
+
background: #a3a3a3;
|
|
176
|
+
opacity: 1;
|
|
177
|
+
position: absolute;
|
|
178
|
+
display: none;
|
|
179
|
+
z-index: 1000000;
|
|
180
|
+
transform-origin: center center;
|
|
181
|
+
touch-action: pan-y;
|
|
182
|
+
user-select: none;
|
|
183
|
+
-webkit-user-drag: none;
|
|
184
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
185
|
+
-moz-border-radius: 10px;
|
|
186
|
+
-webkit-border-radius: 10px;
|
|
187
|
+
border-radius: 5px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
#talkbubble:before {
|
|
191
|
+
content: "";
|
|
192
|
+
position: absolute;
|
|
193
|
+
left: 100%;
|
|
194
|
+
top: 5px;
|
|
195
|
+
width: 0;
|
|
196
|
+
height: 0;
|
|
197
|
+
border-top: 6px solid transparent;
|
|
198
|
+
border-left: 12px solid #a3a3a3;
|
|
199
|
+
border-bottom: 6px solid transparent;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.barrage-more {
|
|
203
|
+
display: none !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
#audio {
|
|
207
|
+
position: absolute;
|
|
208
|
+
right: 0.5rem;
|
|
209
|
+
top: 0.5rem;
|
|
210
|
+
z-index: 103;
|
|
211
|
+
width: 2.5rem;
|
|
212
|
+
height: 2.5rem;
|
|
213
|
+
display: -webkit-box;
|
|
214
|
+
display: -ms-flexbox;
|
|
215
|
+
display: flex;
|
|
216
|
+
-webkit-box-align: center;
|
|
217
|
+
-ms-flex-align: center;
|
|
218
|
+
align-items: center;
|
|
219
|
+
}
|
|
220
|
+
#audio .audio {
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 100%;
|
|
223
|
+
display: -webkit-box;
|
|
224
|
+
display: -ms-flexbox;
|
|
225
|
+
display: flex;
|
|
226
|
+
-webkit-box-align: center;
|
|
227
|
+
-ms-flex-align: center;
|
|
228
|
+
align-items: center;
|
|
229
|
+
-webkit-box-pack: center;
|
|
230
|
+
-ms-flex-pack: center;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
color: #fff;
|
|
233
|
+
background: #666;
|
|
234
|
+
border-radius: 50%;
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
will-change: transform;
|
|
237
|
+
}
|
|
238
|
+
#audio .audio .music-icon {
|
|
239
|
+
display: block;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
}
|
|
243
|
+
#audio .icon-cancel {
|
|
244
|
+
position: absolute;
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: 100%;
|
|
247
|
+
border-radius: 50%;
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
padding: 14px 0;
|
|
250
|
+
}
|
|
251
|
+
#audio .icon-cancel .icon-h {
|
|
252
|
+
-webkit-transform: rotate(45deg);
|
|
253
|
+
transform: rotate(45deg);
|
|
254
|
+
width: 100%;
|
|
255
|
+
height: 2px;
|
|
256
|
+
margin-top: 20px;
|
|
257
|
+
background: #fff;
|
|
258
|
+
}
|
|
259
|
+
#audio .mrotate {
|
|
260
|
+
-webkit-animation: mrotate 5s linear infinite;
|
|
261
|
+
animation: mrotate 5s linear infinite;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.uni-music-component {
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: 10px;
|
|
267
|
+
right: 5px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* 无限旋转 */
|
|
271
|
+
@keyframes mrotate {
|
|
272
|
+
from {
|
|
273
|
+
transform: rotate(0deg);
|
|
274
|
+
}
|
|
275
|
+
to {
|
|
276
|
+
transform: rotate(360deg);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
@-webkit-keyframes mrotate {
|
|
280
|
+
from {
|
|
281
|
+
-webkit-transform: rotate(0deg);
|
|
282
|
+
}
|
|
283
|
+
to {
|
|
284
|
+
-webkit-transform: rotate(360deg);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.uni-music-component {
|
|
289
|
+
position: absolute;
|
|
290
|
+
top: 10px;
|
|
291
|
+
right: 5px;
|
|
292
|
+
}
|
|
293
|
+
|
|
129
294
|
.ant-input-number {
|
|
130
295
|
box-sizing: border-box;
|
|
131
296
|
margin: 0;
|
|
@@ -160,49 +325,10 @@ button.uni-text-component {
|
|
|
160
325
|
margin-bottom: 0px;
|
|
161
326
|
vertical-align: top;
|
|
162
327
|
}
|
|
163
|
-
|
|
164
|
-
.like-button {
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
align-items: center;
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.icon-heart {
|
|
172
|
-
font-size: 24px;
|
|
173
|
-
color: #e74c3c;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.liked {
|
|
177
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.like-count {
|
|
181
|
-
margin-top: 4px;
|
|
182
|
-
font-size: 16px;
|
|
183
|
-
color: #333;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.swiper-warp {
|
|
187
|
-
width: 100%;
|
|
188
|
-
height: 100%;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.swiper-slide-component {
|
|
192
|
-
text-align: center;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.swiper-slide img {
|
|
196
|
-
max-width: 100%;
|
|
197
|
-
max-height: 100%;
|
|
198
|
-
}
|
|
199
328
|
|
|
200
329
|
.uni-svg-component {
|
|
201
330
|
display: inline-block;
|
|
202
331
|
}
|
|
203
|
-
|
|
204
|
-
.uni-build-up-component {
|
|
205
|
-
}
|
|
206
332
|
/**
|
|
207
333
|
* Swiper 6.8.4
|
|
208
334
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, createElementVNode, mergeProps, createCommentVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$
|
|
1
|
+
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, createElementVNode, mergeProps, createCommentVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$o, TransitionGroup } from 'vue';
|
|
2
2
|
import crypto from 'crypto';
|
|
3
3
|
|
|
4
4
|
/** Detect free variable `global` from Node.js. */
|
|
@@ -5050,7 +5050,8 @@ const musicDefaultProps = {
|
|
|
5050
5050
|
musicSrc: '',
|
|
5051
5051
|
name: '',
|
|
5052
5052
|
isPlaying: false,
|
|
5053
|
-
|
|
5053
|
+
icon: 'https://unika-static-dev.oss-ap-southeast-7.aliyuncs.com/components/music2.png',
|
|
5054
|
+
backgroundColor: '#666'
|
|
5054
5055
|
};
|
|
5055
5056
|
const videoDefaultProps = {
|
|
5056
5057
|
left: '12px',
|
|
@@ -5362,12 +5363,12 @@ const extraProps$1 = {
|
|
|
5362
5363
|
},
|
|
5363
5364
|
...isEditingProp
|
|
5364
5365
|
};
|
|
5365
|
-
const defaultProps$
|
|
5366
|
+
const defaultProps$g = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
|
|
5366
5367
|
// array that contains style props
|
|
5367
|
-
var script$
|
|
5368
|
+
var script$m = defineComponent({
|
|
5368
5369
|
name: 'uni-text',
|
|
5369
5370
|
props: {
|
|
5370
|
-
...defaultProps$
|
|
5371
|
+
...defaultProps$g
|
|
5371
5372
|
},
|
|
5372
5373
|
setup(props) {
|
|
5373
5374
|
const styleProps = useStylePick(props);
|
|
@@ -5379,7 +5380,7 @@ var script$l = defineComponent({
|
|
|
5379
5380
|
}
|
|
5380
5381
|
});
|
|
5381
5382
|
|
|
5382
|
-
function render$
|
|
5383
|
+
function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5383
5384
|
return (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
5384
5385
|
onClick: withModifiers(_ctx.handleClick, ["prevent"]),
|
|
5385
5386
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
@@ -5392,16 +5393,16 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5392
5393
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
5393
5394
|
}
|
|
5394
5395
|
|
|
5395
|
-
script$
|
|
5396
|
-
script$
|
|
5397
|
-
script$
|
|
5396
|
+
script$m.render = render$n;
|
|
5397
|
+
script$m.__scopeId = "data-v-55ed80cb";
|
|
5398
|
+
script$m.__file = "src/components/UniText/UniText.vue";
|
|
5398
5399
|
|
|
5399
|
-
script$
|
|
5400
|
-
app.component(script$
|
|
5400
|
+
script$m.install = (app) => {
|
|
5401
|
+
app.component(script$m.name, script$m);
|
|
5401
5402
|
};
|
|
5402
5403
|
|
|
5403
5404
|
// array that contains style props
|
|
5404
|
-
var script$
|
|
5405
|
+
var script$l = defineComponent({
|
|
5405
5406
|
name: 'uni-image',
|
|
5406
5407
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
5407
5408
|
setup(props) {
|
|
@@ -5414,32 +5415,32 @@ var script$k = defineComponent({
|
|
|
5414
5415
|
}
|
|
5415
5416
|
});
|
|
5416
5417
|
|
|
5417
|
-
const _hoisted_1$
|
|
5418
|
+
const _hoisted_1$d = ["src"];
|
|
5418
5419
|
|
|
5419
|
-
function render$
|
|
5420
|
+
function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5420
5421
|
return (openBlock(), createElementBlock("img", {
|
|
5421
5422
|
src: _ctx.imageSrc,
|
|
5422
5423
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
5423
5424
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
5424
5425
|
class: "uni-image-component",
|
|
5425
5426
|
draggable: false
|
|
5426
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
5427
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$d))
|
|
5427
5428
|
}
|
|
5428
5429
|
|
|
5429
|
-
script$
|
|
5430
|
-
script$
|
|
5431
|
-
script$
|
|
5430
|
+
script$l.render = render$m;
|
|
5431
|
+
script$l.__scopeId = "data-v-03caca2f";
|
|
5432
|
+
script$l.__file = "src/components/UniImage/UniImage.vue";
|
|
5432
5433
|
|
|
5433
|
-
script$
|
|
5434
|
-
app.component(script$
|
|
5434
|
+
script$l.install = (app) => {
|
|
5435
|
+
app.component(script$l.name, script$l);
|
|
5435
5436
|
};
|
|
5436
5437
|
|
|
5437
|
-
const defaultProps$
|
|
5438
|
+
const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
5438
5439
|
// array that contains style props
|
|
5439
|
-
var script$
|
|
5440
|
+
var script$k = defineComponent({
|
|
5440
5441
|
name: 'uni-shape',
|
|
5441
5442
|
props: {
|
|
5442
|
-
...defaultProps$
|
|
5443
|
+
...defaultProps$f
|
|
5443
5444
|
},
|
|
5444
5445
|
setup(props) {
|
|
5445
5446
|
const styleProps = useStylePick(props);
|
|
@@ -5451,7 +5452,7 @@ var script$j = defineComponent({
|
|
|
5451
5452
|
}
|
|
5452
5453
|
});
|
|
5453
5454
|
|
|
5454
|
-
function render$
|
|
5455
|
+
function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5455
5456
|
return (openBlock(), createElementBlock("div", {
|
|
5456
5457
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
5457
5458
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
@@ -5460,14 +5461,14 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5460
5461
|
}, null, 4 /* STYLE */))
|
|
5461
5462
|
}
|
|
5462
5463
|
|
|
5463
|
-
script$
|
|
5464
|
-
script$
|
|
5464
|
+
script$k.render = render$l;
|
|
5465
|
+
script$k.__file = "src/components/UniShape/UniShape.vue";
|
|
5465
5466
|
|
|
5466
|
-
script$
|
|
5467
|
-
app.component(script$
|
|
5467
|
+
script$k.install = (app) => {
|
|
5468
|
+
app.component(script$k.name, script$k);
|
|
5468
5469
|
};
|
|
5469
5470
|
|
|
5470
|
-
var script$
|
|
5471
|
+
var script$j = defineComponent({
|
|
5471
5472
|
name: 'long-page',
|
|
5472
5473
|
props: {
|
|
5473
5474
|
work: {
|
|
@@ -5480,9 +5481,9 @@ var script$i = defineComponent({
|
|
|
5480
5481
|
}
|
|
5481
5482
|
});
|
|
5482
5483
|
|
|
5483
|
-
const _hoisted_1$
|
|
5484
|
+
const _hoisted_1$c = ["id"];
|
|
5484
5485
|
|
|
5485
|
-
function render$
|
|
5486
|
+
function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5486
5487
|
return (openBlock(), createElementBlock("div", {
|
|
5487
5488
|
class: "final-page",
|
|
5488
5489
|
style: normalizeStyle$1(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -5493,17 +5494,17 @@ function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5493
5494
|
id: `component-${item.id}`
|
|
5494
5495
|
}, [
|
|
5495
5496
|
(openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
5496
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5497
|
+
], 8 /* PROPS */, _hoisted_1$c))
|
|
5497
5498
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5498
5499
|
], 4 /* STYLE */))
|
|
5499
5500
|
}
|
|
5500
5501
|
|
|
5501
|
-
script$
|
|
5502
|
-
script$
|
|
5502
|
+
script$j.render = render$k;
|
|
5503
|
+
script$j.__file = "src/components/LongPage/LongPage.vue";
|
|
5503
5504
|
|
|
5504
5505
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5505
|
-
script$
|
|
5506
|
-
app.component(script$
|
|
5506
|
+
script$j.install = (app) => {
|
|
5507
|
+
app.component(script$j.name, script$j);
|
|
5507
5508
|
};
|
|
5508
5509
|
|
|
5509
5510
|
/**
|
|
@@ -13014,7 +13015,7 @@ function getComputedCSSText(style) {
|
|
|
13014
13015
|
}
|
|
13015
13016
|
return cssText;
|
|
13016
13017
|
}
|
|
13017
|
-
var script$
|
|
13018
|
+
var script$i = defineComponent({
|
|
13018
13019
|
name: 'swiper-page',
|
|
13019
13020
|
props: {
|
|
13020
13021
|
work: {
|
|
@@ -13121,25 +13122,25 @@ var script$h = defineComponent({
|
|
|
13121
13122
|
}
|
|
13122
13123
|
});
|
|
13123
13124
|
|
|
13124
|
-
const _hoisted_1$
|
|
13125
|
-
const _hoisted_2$
|
|
13126
|
-
const _hoisted_3$
|
|
13125
|
+
const _hoisted_1$b = { style: {"width":"100%","height":"100%"} };
|
|
13126
|
+
const _hoisted_2$4 = ["id"];
|
|
13127
|
+
const _hoisted_3$4 = {
|
|
13127
13128
|
key: 0,
|
|
13128
13129
|
class: "up-arrow"
|
|
13129
13130
|
};
|
|
13130
|
-
const _hoisted_4$
|
|
13131
|
+
const _hoisted_4$3 = /*#__PURE__*/createElementVNode("img", {
|
|
13131
13132
|
src: "https://img1.maka.im/assets/usual/slideguide-3-view.png",
|
|
13132
13133
|
alt: ""
|
|
13133
13134
|
}, null, -1 /* HOISTED */);
|
|
13134
|
-
const _hoisted_5$
|
|
13135
|
-
_hoisted_4$
|
|
13135
|
+
const _hoisted_5$3 = [
|
|
13136
|
+
_hoisted_4$3
|
|
13136
13137
|
];
|
|
13137
13138
|
|
|
13138
|
-
function render$
|
|
13139
|
+
function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13139
13140
|
const _component_swiper_slide = resolveComponent("swiper-slide");
|
|
13140
13141
|
const _component_swiper = resolveComponent("swiper");
|
|
13141
13142
|
|
|
13142
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13143
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
13143
13144
|
createVNode(_component_swiper, {
|
|
13144
13145
|
class: "swiper-container",
|
|
13145
13146
|
modules: _ctx.modules,
|
|
@@ -13170,7 +13171,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13170
13171
|
(item.name != 'uni-build-up')
|
|
13171
13172
|
? (openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(mergeProps({ key: 0 }, item.props)), null, 16 /* FULL_PROPS */))
|
|
13172
13173
|
: createCommentVNode("v-if", true)
|
|
13173
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
13174
|
+
], 8 /* PROPS */, _hoisted_2$4))
|
|
13174
13175
|
}), 128 /* KEYED_FRAGMENT */))
|
|
13175
13176
|
], 4 /* STYLE */)
|
|
13176
13177
|
]),
|
|
@@ -13181,26 +13182,26 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13181
13182
|
_: 1 /* STABLE */
|
|
13182
13183
|
}, 8 /* PROPS */, ["modules", "effect", "direction", "onSwiper", "onSlideChange"]),
|
|
13183
13184
|
(_ctx.upArrow)
|
|
13184
|
-
? (openBlock(), createElementBlock("button", _hoisted_3$
|
|
13185
|
+
? (openBlock(), createElementBlock("button", _hoisted_3$4, [..._hoisted_5$3]))
|
|
13185
13186
|
: createCommentVNode("v-if", true)
|
|
13186
13187
|
]))
|
|
13187
13188
|
}
|
|
13188
13189
|
|
|
13189
|
-
script$
|
|
13190
|
-
script$
|
|
13190
|
+
script$i.render = render$j;
|
|
13191
|
+
script$i.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
13191
13192
|
|
|
13192
13193
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13193
|
-
script$
|
|
13194
|
-
app.component(script$
|
|
13194
|
+
script$i.install = (app) => {
|
|
13195
|
+
app.component(script$i.name, script$i);
|
|
13195
13196
|
};
|
|
13196
13197
|
|
|
13197
|
-
const defaultProps$
|
|
13198
|
+
const defaultProps$e = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13198
13199
|
const defaultStyles$b = Object.keys(backgroundDefaultProps);
|
|
13199
13200
|
// array that contains style props
|
|
13200
|
-
var script$
|
|
13201
|
+
var script$h = defineComponent({
|
|
13201
13202
|
name: 'uni-background',
|
|
13202
13203
|
props: {
|
|
13203
|
-
...defaultProps$
|
|
13204
|
+
...defaultProps$e
|
|
13204
13205
|
},
|
|
13205
13206
|
setup(props) {
|
|
13206
13207
|
const styleProps = useStylePick(props, defaultStyles$b);
|
|
@@ -13212,7 +13213,7 @@ var script$g = defineComponent({
|
|
|
13212
13213
|
}
|
|
13213
13214
|
});
|
|
13214
13215
|
|
|
13215
|
-
function render$
|
|
13216
|
+
function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13216
13217
|
return (openBlock(), createElementBlock("div", {
|
|
13217
13218
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
13218
13219
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
@@ -13221,8 +13222,128 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13221
13222
|
}, null, 4 /* STYLE */))
|
|
13222
13223
|
}
|
|
13223
13224
|
|
|
13225
|
+
script$h.render = render$i;
|
|
13226
|
+
script$h.__file = "src/components/UniBackground/UniBackground.vue";
|
|
13227
|
+
|
|
13228
|
+
script$h.install = (app) => {
|
|
13229
|
+
app.component(script$h.name, script$h);
|
|
13230
|
+
};
|
|
13231
|
+
|
|
13232
|
+
const defaultProps$d = transformToComponentProps(componentsDefaultProps['uni-music'].props, isEditingProp);
|
|
13233
|
+
// array that contains style props
|
|
13234
|
+
var script$g = defineComponent({
|
|
13235
|
+
name: 'uni-music',
|
|
13236
|
+
props: {
|
|
13237
|
+
...defaultProps$d,
|
|
13238
|
+
},
|
|
13239
|
+
setup(props) {
|
|
13240
|
+
// 重用并且简化
|
|
13241
|
+
// 抽离并且获得 styleProps
|
|
13242
|
+
const styleProps = useStylePick(props);
|
|
13243
|
+
const handleClick = useComponentClick(props);
|
|
13244
|
+
const isPlaying = ref(props.isPlaying);
|
|
13245
|
+
const audioPlayer = ref(null);
|
|
13246
|
+
const togglePlay = () => {
|
|
13247
|
+
if (!audioPlayer.value)
|
|
13248
|
+
return;
|
|
13249
|
+
isPlaying.value = !isPlaying.value;
|
|
13250
|
+
if (isPlaying.value) {
|
|
13251
|
+
audioPlayer.value && audioPlayer.value.play();
|
|
13252
|
+
}
|
|
13253
|
+
else {
|
|
13254
|
+
audioPlayer.value && audioPlayer.value.pause();
|
|
13255
|
+
}
|
|
13256
|
+
};
|
|
13257
|
+
onMounted(() => {
|
|
13258
|
+
audioPlayer.value = document.querySelector('audio');
|
|
13259
|
+
if (audioPlayer.value && props.isPlaying) {
|
|
13260
|
+
audioPlayer.value.load();
|
|
13261
|
+
audioPlayer.value.play().catch(() => {
|
|
13262
|
+
const playError = ref(true);
|
|
13263
|
+
const event = ['click']; // "touchstart"
|
|
13264
|
+
const pageClick = () => {
|
|
13265
|
+
if (audioPlayer.value && playError.value) {
|
|
13266
|
+
playError.value = false;
|
|
13267
|
+
audioPlayer.value.load();
|
|
13268
|
+
audioPlayer.value.play().catch(() => {
|
|
13269
|
+
playError.value = true;
|
|
13270
|
+
});
|
|
13271
|
+
event.forEach((item) => {
|
|
13272
|
+
document.removeEventListener(item, pageClick);
|
|
13273
|
+
});
|
|
13274
|
+
}
|
|
13275
|
+
};
|
|
13276
|
+
event.forEach((item) => {
|
|
13277
|
+
document.addEventListener(item, pageClick);
|
|
13278
|
+
});
|
|
13279
|
+
});
|
|
13280
|
+
}
|
|
13281
|
+
else {
|
|
13282
|
+
isPlaying.value = false;
|
|
13283
|
+
}
|
|
13284
|
+
});
|
|
13285
|
+
return {
|
|
13286
|
+
styleProps,
|
|
13287
|
+
handleClick,
|
|
13288
|
+
isPlaying,
|
|
13289
|
+
togglePlay
|
|
13290
|
+
};
|
|
13291
|
+
}
|
|
13292
|
+
});
|
|
13293
|
+
|
|
13294
|
+
const _hoisted_1$a = ["src"];
|
|
13295
|
+
const _hoisted_2$3 = { class: "icon-cancel" };
|
|
13296
|
+
const _hoisted_3$3 = {
|
|
13297
|
+
key: 0,
|
|
13298
|
+
id: "icon-h",
|
|
13299
|
+
class: "icon-h"
|
|
13300
|
+
};
|
|
13301
|
+
const _hoisted_4$2 = {
|
|
13302
|
+
key: 0,
|
|
13303
|
+
id: "talkbubble",
|
|
13304
|
+
style: {"width":"70.1562px","height":"22.1562px","padding":"2px 2px 2px 7px","right":"52.5781px","top":"11.5781px","opacity":"1","position":"absolute","display":"block","z-index":"1000000","transform-origin":"center center","touch-action":"pan-y","user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(84, 31, 31, 0)"}
|
|
13305
|
+
};
|
|
13306
|
+
const _hoisted_5$2 = ["src"];
|
|
13307
|
+
|
|
13308
|
+
function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13309
|
+
return (openBlock(), createElementBlock("div", {
|
|
13310
|
+
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
13311
|
+
id: "audio",
|
|
13312
|
+
class: "uni-music-component"
|
|
13313
|
+
}, [
|
|
13314
|
+
createElementVNode("div", {
|
|
13315
|
+
id: "music",
|
|
13316
|
+
class: normalizeClass({ mrotate: _ctx.isPlaying, audio: true, backgroundColor: _ctx.backgroundColor }),
|
|
13317
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.togglePlay && _ctx.togglePlay(...args)))
|
|
13318
|
+
}, [
|
|
13319
|
+
createElementVNode("img", {
|
|
13320
|
+
src: _ctx.icon,
|
|
13321
|
+
class: "music-icon"
|
|
13322
|
+
}, null, 8 /* PROPS */, _hoisted_1$a),
|
|
13323
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
13324
|
+
(!_ctx.isPlaying)
|
|
13325
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$3))
|
|
13326
|
+
: createCommentVNode("v-if", true)
|
|
13327
|
+
])
|
|
13328
|
+
], 2 /* CLASS */),
|
|
13329
|
+
(!_ctx.isPlaying)
|
|
13330
|
+
? (openBlock(), createElementBlock("div", _hoisted_4$2, " เล่นเพลง "))
|
|
13331
|
+
: createCommentVNode("v-if", true),
|
|
13332
|
+
createElementVNode("audio", {
|
|
13333
|
+
style: {"display":"none"},
|
|
13334
|
+
ref: "audioPlayer",
|
|
13335
|
+
src: _ctx.musicSrc,
|
|
13336
|
+
autoplay: "",
|
|
13337
|
+
controls: "",
|
|
13338
|
+
loop: "",
|
|
13339
|
+
preload: "auto"
|
|
13340
|
+
}, null, 8 /* PROPS */, _hoisted_5$2)
|
|
13341
|
+
]))
|
|
13342
|
+
}
|
|
13343
|
+
|
|
13224
13344
|
script$g.render = render$h;
|
|
13225
|
-
script$g.
|
|
13345
|
+
script$g.__scopeId = "data-v-99922522";
|
|
13346
|
+
script$g.__file = "src/components/UniMusic/UniMusic.vue";
|
|
13226
13347
|
|
|
13227
13348
|
script$g.install = (app) => {
|
|
13228
13349
|
app.component(script$g.name, script$g);
|
|
@@ -44489,7 +44610,7 @@ const WaveEffect = defineComponent({
|
|
|
44489
44610
|
var _a;
|
|
44490
44611
|
const holder = (_a = divRef.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
44491
44612
|
if (holder) {
|
|
44492
|
-
render$
|
|
44613
|
+
render$o(null, holder);
|
|
44493
44614
|
if (holder.parentElement) {
|
|
44494
44615
|
holder.parentElement.removeChild(holder);
|
|
44495
44616
|
}
|
|
@@ -44562,7 +44683,7 @@ function showWaveEffect(node, className) {
|
|
|
44562
44683
|
holder.style.left = `0px`;
|
|
44563
44684
|
holder.style.top = `0px`;
|
|
44564
44685
|
node === null || node === void 0 ? void 0 : node.insertBefore(holder, node === null || node === void 0 ? void 0 : node.firstChild);
|
|
44565
|
-
render$
|
|
44686
|
+
render$o(createVNode(WaveEffect, {
|
|
44566
44687
|
"target": node,
|
|
44567
44688
|
"className": className
|
|
44568
44689
|
}, null), holder);
|
|
@@ -75665,7 +75786,7 @@ var script = defineComponent({
|
|
|
75665
75786
|
}
|
|
75666
75787
|
});
|
|
75667
75788
|
};
|
|
75668
|
-
watch([() => props.svgSrc, () => props.color], loadSvg, { immediate: true });
|
|
75789
|
+
watch([() => props.svgSrc, () => props.color, () => props.width, () => props.height], loadSvg, { immediate: true });
|
|
75669
75790
|
return {
|
|
75670
75791
|
styleProps,
|
|
75671
75792
|
handleClick,
|
|
@@ -75681,8 +75802,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75681
75802
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
75682
75803
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
75683
75804
|
class: "uni-svg-component",
|
|
75684
|
-
innerHTML: _ctx.svgContent
|
|
75685
|
-
draggable: false
|
|
75805
|
+
innerHTML: _ctx.svgContent
|
|
75686
75806
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1))
|
|
75687
75807
|
}
|
|
75688
75808
|
|
|
@@ -75696,13 +75816,13 @@ script.install = (app) => {
|
|
|
75696
75816
|
|
|
75697
75817
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
75698
75818
|
const components = [
|
|
75819
|
+
script$m,
|
|
75699
75820
|
script$l,
|
|
75700
75821
|
script$k,
|
|
75701
75822
|
script$j,
|
|
75702
75823
|
script$i,
|
|
75703
75824
|
script$h,
|
|
75704
75825
|
script$g,
|
|
75705
|
-
// UniMusic,
|
|
75706
75826
|
script$f,
|
|
75707
75827
|
script$d,
|
|
75708
75828
|
script$b,
|
|
@@ -75729,4 +75849,4 @@ var index = {
|
|
|
75729
75849
|
install
|
|
75730
75850
|
};
|
|
75731
75851
|
|
|
75732
|
-
export { script$
|
|
75852
|
+
export { script$j as LongPage, script$i as SwiperPage, script$h as UniBackground, script$2 as UniBulidUp, script$3 as UniButton, script$d as UniCalendar, script$9 as UniCall, script$b as UniCountdown, script$7 as UniEffect, script$l as UniImage, script$8 as UniLike, script$5 as UniLotties, script$a as UniMap, script$g as UniMusic, script$6 as UniRegisterForm, script$k as UniShape, script as UniSvg, script$4 as UniSwiper, script$1 as UniTest, script$m as UniText, script$f as UniVideo, index as default, install };
|
|
@@ -5057,7 +5057,8 @@
|
|
|
5057
5057
|
musicSrc: '',
|
|
5058
5058
|
name: '',
|
|
5059
5059
|
isPlaying: false,
|
|
5060
|
-
|
|
5060
|
+
icon: 'https://unika-static-dev.oss-ap-southeast-7.aliyuncs.com/components/music2.png',
|
|
5061
|
+
backgroundColor: '#666'
|
|
5061
5062
|
};
|
|
5062
5063
|
const videoDefaultProps = {
|
|
5063
5064
|
left: '12px',
|
|
@@ -5369,12 +5370,12 @@
|
|
|
5369
5370
|
},
|
|
5370
5371
|
...isEditingProp
|
|
5371
5372
|
};
|
|
5372
|
-
const defaultProps$
|
|
5373
|
+
const defaultProps$g = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
|
|
5373
5374
|
// array that contains style props
|
|
5374
|
-
var script$
|
|
5375
|
+
var script$m = vue.defineComponent({
|
|
5375
5376
|
name: 'uni-text',
|
|
5376
5377
|
props: {
|
|
5377
|
-
...defaultProps$
|
|
5378
|
+
...defaultProps$g
|
|
5378
5379
|
},
|
|
5379
5380
|
setup(props) {
|
|
5380
5381
|
const styleProps = useStylePick(props);
|
|
@@ -5386,7 +5387,7 @@
|
|
|
5386
5387
|
}
|
|
5387
5388
|
});
|
|
5388
5389
|
|
|
5389
|
-
function render$
|
|
5390
|
+
function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5390
5391
|
return (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
5391
5392
|
onClick: vue.withModifiers(_ctx.handleClick, ["prevent"]),
|
|
5392
5393
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -5399,16 +5400,16 @@
|
|
|
5399
5400
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
5400
5401
|
}
|
|
5401
5402
|
|
|
5402
|
-
script$
|
|
5403
|
-
script$
|
|
5404
|
-
script$
|
|
5403
|
+
script$m.render = render$n;
|
|
5404
|
+
script$m.__scopeId = "data-v-55ed80cb";
|
|
5405
|
+
script$m.__file = "src/components/UniText/UniText.vue";
|
|
5405
5406
|
|
|
5406
|
-
script$
|
|
5407
|
-
app.component(script$
|
|
5407
|
+
script$m.install = (app) => {
|
|
5408
|
+
app.component(script$m.name, script$m);
|
|
5408
5409
|
};
|
|
5409
5410
|
|
|
5410
5411
|
// array that contains style props
|
|
5411
|
-
var script$
|
|
5412
|
+
var script$l = vue.defineComponent({
|
|
5412
5413
|
name: 'uni-image',
|
|
5413
5414
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
5414
5415
|
setup(props) {
|
|
@@ -5421,32 +5422,32 @@
|
|
|
5421
5422
|
}
|
|
5422
5423
|
});
|
|
5423
5424
|
|
|
5424
|
-
const _hoisted_1$
|
|
5425
|
+
const _hoisted_1$d = ["src"];
|
|
5425
5426
|
|
|
5426
|
-
function render$
|
|
5427
|
+
function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5427
5428
|
return (vue.openBlock(), vue.createElementBlock("img", {
|
|
5428
5429
|
src: _ctx.imageSrc,
|
|
5429
5430
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
5430
5431
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
5431
5432
|
class: "uni-image-component",
|
|
5432
5433
|
draggable: false
|
|
5433
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
5434
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$d))
|
|
5434
5435
|
}
|
|
5435
5436
|
|
|
5436
|
-
script$
|
|
5437
|
-
script$
|
|
5438
|
-
script$
|
|
5437
|
+
script$l.render = render$m;
|
|
5438
|
+
script$l.__scopeId = "data-v-03caca2f";
|
|
5439
|
+
script$l.__file = "src/components/UniImage/UniImage.vue";
|
|
5439
5440
|
|
|
5440
|
-
script$
|
|
5441
|
-
app.component(script$
|
|
5441
|
+
script$l.install = (app) => {
|
|
5442
|
+
app.component(script$l.name, script$l);
|
|
5442
5443
|
};
|
|
5443
5444
|
|
|
5444
|
-
const defaultProps$
|
|
5445
|
+
const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
5445
5446
|
// array that contains style props
|
|
5446
|
-
var script$
|
|
5447
|
+
var script$k = vue.defineComponent({
|
|
5447
5448
|
name: 'uni-shape',
|
|
5448
5449
|
props: {
|
|
5449
|
-
...defaultProps$
|
|
5450
|
+
...defaultProps$f
|
|
5450
5451
|
},
|
|
5451
5452
|
setup(props) {
|
|
5452
5453
|
const styleProps = useStylePick(props);
|
|
@@ -5458,7 +5459,7 @@
|
|
|
5458
5459
|
}
|
|
5459
5460
|
});
|
|
5460
5461
|
|
|
5461
|
-
function render$
|
|
5462
|
+
function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5462
5463
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
5463
5464
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
5464
5465
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -5467,14 +5468,14 @@
|
|
|
5467
5468
|
}, null, 4 /* STYLE */))
|
|
5468
5469
|
}
|
|
5469
5470
|
|
|
5470
|
-
script$
|
|
5471
|
-
script$
|
|
5471
|
+
script$k.render = render$l;
|
|
5472
|
+
script$k.__file = "src/components/UniShape/UniShape.vue";
|
|
5472
5473
|
|
|
5473
|
-
script$
|
|
5474
|
-
app.component(script$
|
|
5474
|
+
script$k.install = (app) => {
|
|
5475
|
+
app.component(script$k.name, script$k);
|
|
5475
5476
|
};
|
|
5476
5477
|
|
|
5477
|
-
var script$
|
|
5478
|
+
var script$j = vue.defineComponent({
|
|
5478
5479
|
name: 'long-page',
|
|
5479
5480
|
props: {
|
|
5480
5481
|
work: {
|
|
@@ -5487,9 +5488,9 @@
|
|
|
5487
5488
|
}
|
|
5488
5489
|
});
|
|
5489
5490
|
|
|
5490
|
-
const _hoisted_1$
|
|
5491
|
+
const _hoisted_1$c = ["id"];
|
|
5491
5492
|
|
|
5492
|
-
function render$
|
|
5493
|
+
function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5493
5494
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
5494
5495
|
class: "final-page",
|
|
5495
5496
|
style: vue.normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -5500,17 +5501,17 @@
|
|
|
5500
5501
|
id: `component-${item.id}`
|
|
5501
5502
|
}, [
|
|
5502
5503
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
5503
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
5504
|
+
], 8 /* PROPS */, _hoisted_1$c))
|
|
5504
5505
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5505
5506
|
], 4 /* STYLE */))
|
|
5506
5507
|
}
|
|
5507
5508
|
|
|
5508
|
-
script$
|
|
5509
|
-
script$
|
|
5509
|
+
script$j.render = render$k;
|
|
5510
|
+
script$j.__file = "src/components/LongPage/LongPage.vue";
|
|
5510
5511
|
|
|
5511
5512
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5512
|
-
script$
|
|
5513
|
-
app.component(script$
|
|
5513
|
+
script$j.install = (app) => {
|
|
5514
|
+
app.component(script$j.name, script$j);
|
|
5514
5515
|
};
|
|
5515
5516
|
|
|
5516
5517
|
/**
|
|
@@ -13021,7 +13022,7 @@
|
|
|
13021
13022
|
}
|
|
13022
13023
|
return cssText;
|
|
13023
13024
|
}
|
|
13024
|
-
var script$
|
|
13025
|
+
var script$i = vue.defineComponent({
|
|
13025
13026
|
name: 'swiper-page',
|
|
13026
13027
|
props: {
|
|
13027
13028
|
work: {
|
|
@@ -13128,25 +13129,25 @@
|
|
|
13128
13129
|
}
|
|
13129
13130
|
});
|
|
13130
13131
|
|
|
13131
|
-
const _hoisted_1$
|
|
13132
|
-
const _hoisted_2$
|
|
13133
|
-
const _hoisted_3$
|
|
13132
|
+
const _hoisted_1$b = { style: {"width":"100%","height":"100%"} };
|
|
13133
|
+
const _hoisted_2$4 = ["id"];
|
|
13134
|
+
const _hoisted_3$4 = {
|
|
13134
13135
|
key: 0,
|
|
13135
13136
|
class: "up-arrow"
|
|
13136
13137
|
};
|
|
13137
|
-
const _hoisted_4$
|
|
13138
|
+
const _hoisted_4$3 = /*#__PURE__*/vue.createElementVNode("img", {
|
|
13138
13139
|
src: "https://img1.maka.im/assets/usual/slideguide-3-view.png",
|
|
13139
13140
|
alt: ""
|
|
13140
13141
|
}, null, -1 /* HOISTED */);
|
|
13141
|
-
const _hoisted_5$
|
|
13142
|
-
_hoisted_4$
|
|
13142
|
+
const _hoisted_5$3 = [
|
|
13143
|
+
_hoisted_4$3
|
|
13143
13144
|
];
|
|
13144
13145
|
|
|
13145
|
-
function render$
|
|
13146
|
+
function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13146
13147
|
const _component_swiper_slide = vue.resolveComponent("swiper-slide");
|
|
13147
13148
|
const _component_swiper = vue.resolveComponent("swiper");
|
|
13148
13149
|
|
|
13149
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13150
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
13150
13151
|
vue.createVNode(_component_swiper, {
|
|
13151
13152
|
class: "swiper-container",
|
|
13152
13153
|
modules: _ctx.modules,
|
|
@@ -13177,7 +13178,7 @@
|
|
|
13177
13178
|
(item.name != 'uni-build-up')
|
|
13178
13179
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.mergeProps({ key: 0 }, item.props)), null, 16 /* FULL_PROPS */))
|
|
13179
13180
|
: vue.createCommentVNode("v-if", true)
|
|
13180
|
-
], 8 /* PROPS */, _hoisted_2$
|
|
13181
|
+
], 8 /* PROPS */, _hoisted_2$4))
|
|
13181
13182
|
}), 128 /* KEYED_FRAGMENT */))
|
|
13182
13183
|
], 4 /* STYLE */)
|
|
13183
13184
|
]),
|
|
@@ -13188,26 +13189,26 @@
|
|
|
13188
13189
|
_: 1 /* STABLE */
|
|
13189
13190
|
}, 8 /* PROPS */, ["modules", "effect", "direction", "onSwiper", "onSlideChange"]),
|
|
13190
13191
|
(_ctx.upArrow)
|
|
13191
|
-
? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$
|
|
13192
|
+
? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$4, [..._hoisted_5$3]))
|
|
13192
13193
|
: vue.createCommentVNode("v-if", true)
|
|
13193
13194
|
]))
|
|
13194
13195
|
}
|
|
13195
13196
|
|
|
13196
|
-
script$
|
|
13197
|
-
script$
|
|
13197
|
+
script$i.render = render$j;
|
|
13198
|
+
script$i.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
13198
13199
|
|
|
13199
13200
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13200
|
-
script$
|
|
13201
|
-
app.component(script$
|
|
13201
|
+
script$i.install = (app) => {
|
|
13202
|
+
app.component(script$i.name, script$i);
|
|
13202
13203
|
};
|
|
13203
13204
|
|
|
13204
|
-
const defaultProps$
|
|
13205
|
+
const defaultProps$e = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13205
13206
|
const defaultStyles$b = Object.keys(backgroundDefaultProps);
|
|
13206
13207
|
// array that contains style props
|
|
13207
|
-
var script$
|
|
13208
|
+
var script$h = vue.defineComponent({
|
|
13208
13209
|
name: 'uni-background',
|
|
13209
13210
|
props: {
|
|
13210
|
-
...defaultProps$
|
|
13211
|
+
...defaultProps$e
|
|
13211
13212
|
},
|
|
13212
13213
|
setup(props) {
|
|
13213
13214
|
const styleProps = useStylePick(props, defaultStyles$b);
|
|
@@ -13219,7 +13220,7 @@
|
|
|
13219
13220
|
}
|
|
13220
13221
|
});
|
|
13221
13222
|
|
|
13222
|
-
function render$
|
|
13223
|
+
function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13223
13224
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
13224
13225
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
13225
13226
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -13228,8 +13229,128 @@
|
|
|
13228
13229
|
}, null, 4 /* STYLE */))
|
|
13229
13230
|
}
|
|
13230
13231
|
|
|
13232
|
+
script$h.render = render$i;
|
|
13233
|
+
script$h.__file = "src/components/UniBackground/UniBackground.vue";
|
|
13234
|
+
|
|
13235
|
+
script$h.install = (app) => {
|
|
13236
|
+
app.component(script$h.name, script$h);
|
|
13237
|
+
};
|
|
13238
|
+
|
|
13239
|
+
const defaultProps$d = transformToComponentProps(componentsDefaultProps['uni-music'].props, isEditingProp);
|
|
13240
|
+
// array that contains style props
|
|
13241
|
+
var script$g = vue.defineComponent({
|
|
13242
|
+
name: 'uni-music',
|
|
13243
|
+
props: {
|
|
13244
|
+
...defaultProps$d,
|
|
13245
|
+
},
|
|
13246
|
+
setup(props) {
|
|
13247
|
+
// 重用并且简化
|
|
13248
|
+
// 抽离并且获得 styleProps
|
|
13249
|
+
const styleProps = useStylePick(props);
|
|
13250
|
+
const handleClick = useComponentClick(props);
|
|
13251
|
+
const isPlaying = vue.ref(props.isPlaying);
|
|
13252
|
+
const audioPlayer = vue.ref(null);
|
|
13253
|
+
const togglePlay = () => {
|
|
13254
|
+
if (!audioPlayer.value)
|
|
13255
|
+
return;
|
|
13256
|
+
isPlaying.value = !isPlaying.value;
|
|
13257
|
+
if (isPlaying.value) {
|
|
13258
|
+
audioPlayer.value && audioPlayer.value.play();
|
|
13259
|
+
}
|
|
13260
|
+
else {
|
|
13261
|
+
audioPlayer.value && audioPlayer.value.pause();
|
|
13262
|
+
}
|
|
13263
|
+
};
|
|
13264
|
+
vue.onMounted(() => {
|
|
13265
|
+
audioPlayer.value = document.querySelector('audio');
|
|
13266
|
+
if (audioPlayer.value && props.isPlaying) {
|
|
13267
|
+
audioPlayer.value.load();
|
|
13268
|
+
audioPlayer.value.play().catch(() => {
|
|
13269
|
+
const playError = vue.ref(true);
|
|
13270
|
+
const event = ['click']; // "touchstart"
|
|
13271
|
+
const pageClick = () => {
|
|
13272
|
+
if (audioPlayer.value && playError.value) {
|
|
13273
|
+
playError.value = false;
|
|
13274
|
+
audioPlayer.value.load();
|
|
13275
|
+
audioPlayer.value.play().catch(() => {
|
|
13276
|
+
playError.value = true;
|
|
13277
|
+
});
|
|
13278
|
+
event.forEach((item) => {
|
|
13279
|
+
document.removeEventListener(item, pageClick);
|
|
13280
|
+
});
|
|
13281
|
+
}
|
|
13282
|
+
};
|
|
13283
|
+
event.forEach((item) => {
|
|
13284
|
+
document.addEventListener(item, pageClick);
|
|
13285
|
+
});
|
|
13286
|
+
});
|
|
13287
|
+
}
|
|
13288
|
+
else {
|
|
13289
|
+
isPlaying.value = false;
|
|
13290
|
+
}
|
|
13291
|
+
});
|
|
13292
|
+
return {
|
|
13293
|
+
styleProps,
|
|
13294
|
+
handleClick,
|
|
13295
|
+
isPlaying,
|
|
13296
|
+
togglePlay
|
|
13297
|
+
};
|
|
13298
|
+
}
|
|
13299
|
+
});
|
|
13300
|
+
|
|
13301
|
+
const _hoisted_1$a = ["src"];
|
|
13302
|
+
const _hoisted_2$3 = { class: "icon-cancel" };
|
|
13303
|
+
const _hoisted_3$3 = {
|
|
13304
|
+
key: 0,
|
|
13305
|
+
id: "icon-h",
|
|
13306
|
+
class: "icon-h"
|
|
13307
|
+
};
|
|
13308
|
+
const _hoisted_4$2 = {
|
|
13309
|
+
key: 0,
|
|
13310
|
+
id: "talkbubble",
|
|
13311
|
+
style: {"width":"70.1562px","height":"22.1562px","padding":"2px 2px 2px 7px","right":"52.5781px","top":"11.5781px","opacity":"1","position":"absolute","display":"block","z-index":"1000000","transform-origin":"center center","touch-action":"pan-y","user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(84, 31, 31, 0)"}
|
|
13312
|
+
};
|
|
13313
|
+
const _hoisted_5$2 = ["src"];
|
|
13314
|
+
|
|
13315
|
+
function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13316
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
13317
|
+
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
13318
|
+
id: "audio",
|
|
13319
|
+
class: "uni-music-component"
|
|
13320
|
+
}, [
|
|
13321
|
+
vue.createElementVNode("div", {
|
|
13322
|
+
id: "music",
|
|
13323
|
+
class: vue.normalizeClass({ mrotate: _ctx.isPlaying, audio: true, backgroundColor: _ctx.backgroundColor }),
|
|
13324
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.togglePlay && _ctx.togglePlay(...args)))
|
|
13325
|
+
}, [
|
|
13326
|
+
vue.createElementVNode("img", {
|
|
13327
|
+
src: _ctx.icon,
|
|
13328
|
+
class: "music-icon"
|
|
13329
|
+
}, null, 8 /* PROPS */, _hoisted_1$a),
|
|
13330
|
+
vue.createElementVNode("div", _hoisted_2$3, [
|
|
13331
|
+
(!_ctx.isPlaying)
|
|
13332
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3))
|
|
13333
|
+
: vue.createCommentVNode("v-if", true)
|
|
13334
|
+
])
|
|
13335
|
+
], 2 /* CLASS */),
|
|
13336
|
+
(!_ctx.isPlaying)
|
|
13337
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, " เล่นเพลง "))
|
|
13338
|
+
: vue.createCommentVNode("v-if", true),
|
|
13339
|
+
vue.createElementVNode("audio", {
|
|
13340
|
+
style: {"display":"none"},
|
|
13341
|
+
ref: "audioPlayer",
|
|
13342
|
+
src: _ctx.musicSrc,
|
|
13343
|
+
autoplay: "",
|
|
13344
|
+
controls: "",
|
|
13345
|
+
loop: "",
|
|
13346
|
+
preload: "auto"
|
|
13347
|
+
}, null, 8 /* PROPS */, _hoisted_5$2)
|
|
13348
|
+
]))
|
|
13349
|
+
}
|
|
13350
|
+
|
|
13231
13351
|
script$g.render = render$h;
|
|
13232
|
-
script$g.
|
|
13352
|
+
script$g.__scopeId = "data-v-99922522";
|
|
13353
|
+
script$g.__file = "src/components/UniMusic/UniMusic.vue";
|
|
13233
13354
|
|
|
13234
13355
|
script$g.install = (app) => {
|
|
13235
13356
|
app.component(script$g.name, script$g);
|
|
@@ -75672,7 +75793,7 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75672
75793
|
}
|
|
75673
75794
|
});
|
|
75674
75795
|
};
|
|
75675
|
-
vue.watch([() => props.svgSrc, () => props.color], loadSvg, { immediate: true });
|
|
75796
|
+
vue.watch([() => props.svgSrc, () => props.color, () => props.width, () => props.height], loadSvg, { immediate: true });
|
|
75676
75797
|
return {
|
|
75677
75798
|
styleProps,
|
|
75678
75799
|
handleClick,
|
|
@@ -75688,8 +75809,7 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75688
75809
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
75689
75810
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
75690
75811
|
class: "uni-svg-component",
|
|
75691
|
-
innerHTML: _ctx.svgContent
|
|
75692
|
-
draggable: false
|
|
75812
|
+
innerHTML: _ctx.svgContent
|
|
75693
75813
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1))
|
|
75694
75814
|
}
|
|
75695
75815
|
|
|
@@ -75703,13 +75823,13 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75703
75823
|
|
|
75704
75824
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
75705
75825
|
const components = [
|
|
75826
|
+
script$m,
|
|
75706
75827
|
script$l,
|
|
75707
75828
|
script$k,
|
|
75708
75829
|
script$j,
|
|
75709
75830
|
script$i,
|
|
75710
75831
|
script$h,
|
|
75711
75832
|
script$g,
|
|
75712
|
-
// UniMusic,
|
|
75713
75833
|
script$f,
|
|
75714
75834
|
script$d,
|
|
75715
75835
|
script$b,
|
|
@@ -75736,25 +75856,26 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75736
75856
|
install
|
|
75737
75857
|
};
|
|
75738
75858
|
|
|
75739
|
-
exports.LongPage = script$
|
|
75740
|
-
exports.SwiperPage = script$
|
|
75741
|
-
exports.UniBackground = script$
|
|
75859
|
+
exports.LongPage = script$j;
|
|
75860
|
+
exports.SwiperPage = script$i;
|
|
75861
|
+
exports.UniBackground = script$h;
|
|
75742
75862
|
exports.UniBulidUp = script$2;
|
|
75743
75863
|
exports.UniButton = script$3;
|
|
75744
75864
|
exports.UniCalendar = script$d;
|
|
75745
75865
|
exports.UniCall = script$9;
|
|
75746
75866
|
exports.UniCountdown = script$b;
|
|
75747
75867
|
exports.UniEffect = script$7;
|
|
75748
|
-
exports.UniImage = script$
|
|
75868
|
+
exports.UniImage = script$l;
|
|
75749
75869
|
exports.UniLike = script$8;
|
|
75750
75870
|
exports.UniLotties = script$5;
|
|
75751
75871
|
exports.UniMap = script$a;
|
|
75872
|
+
exports.UniMusic = script$g;
|
|
75752
75873
|
exports.UniRegisterForm = script$6;
|
|
75753
|
-
exports.UniShape = script$
|
|
75874
|
+
exports.UniShape = script$k;
|
|
75754
75875
|
exports.UniSvg = script;
|
|
75755
75876
|
exports.UniSwiper = script$4;
|
|
75756
75877
|
exports.UniTest = script$1;
|
|
75757
|
-
exports.UniText = script$
|
|
75878
|
+
exports.UniText = script$m;
|
|
75758
75879
|
exports.UniVideo = script$f;
|
|
75759
75880
|
exports["default"] = index;
|
|
75760
75881
|
exports.install = install;
|