unika-components 1.0.3 → 1.0.5
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/dist/src/components/UniBackground/UniBackground.vue.d.ts +17 -0
- package/dist/src/components/UniBackground/index.d.ts +2 -0
- package/dist/src/components/UniMusic/UniMusic.vue.d.ts +13 -0
- package/dist/src/components/UniMusic/index.d.ts +2 -0
- package/dist/src/defaultProps.d.ts +72 -6
- package/dist/src/index.d.ts +3 -1
- package/dist/unika-components.css +123 -4
- package/dist/unika-components.esm.js +259 -53
- package/dist/unika-components.umd.js +264 -56
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
watermark: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
8
|
+
handleClick: () => void;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
watermark: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
watermark: boolean;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
}, {
|
|
4
|
+
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
5
|
+
handleClick: () => void;
|
|
6
|
+
isPlaying: import("vue").Ref<boolean>;
|
|
7
|
+
togglePlay: () => void;
|
|
8
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}>>, {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -113,9 +113,6 @@ export declare const textDefaultProps: {
|
|
|
113
113
|
textAlign: string;
|
|
114
114
|
color: string;
|
|
115
115
|
backgroundColor: string;
|
|
116
|
-
display: string;
|
|
117
|
-
alignItems: string;
|
|
118
|
-
justifyContent: string;
|
|
119
116
|
};
|
|
120
117
|
export declare const imageDefaultProps: {
|
|
121
118
|
actionType: string;
|
|
@@ -159,6 +156,40 @@ export declare const shapeDefaultProps: {
|
|
|
159
156
|
right: string;
|
|
160
157
|
backgroundColor: string;
|
|
161
158
|
};
|
|
159
|
+
export declare const backgroundDefaultProps: {
|
|
160
|
+
backgroundColor: string;
|
|
161
|
+
backgroundImage: string;
|
|
162
|
+
backgroundSize: string;
|
|
163
|
+
backgroundRepeat: string;
|
|
164
|
+
opacity: number;
|
|
165
|
+
height: string;
|
|
166
|
+
position: string;
|
|
167
|
+
left: string;
|
|
168
|
+
top: string;
|
|
169
|
+
};
|
|
170
|
+
export declare const musicDefaultProps: {
|
|
171
|
+
actionType: string;
|
|
172
|
+
url: string;
|
|
173
|
+
height: string;
|
|
174
|
+
width: string;
|
|
175
|
+
paddingLeft: string;
|
|
176
|
+
paddingRight: string;
|
|
177
|
+
paddingTop: string;
|
|
178
|
+
paddingBottom: string;
|
|
179
|
+
borderStyle: string;
|
|
180
|
+
borderColor: string;
|
|
181
|
+
borderWidth: string;
|
|
182
|
+
borderRadius: string;
|
|
183
|
+
boxShadow: string;
|
|
184
|
+
opacity: number;
|
|
185
|
+
position: string;
|
|
186
|
+
left: string;
|
|
187
|
+
top: string;
|
|
188
|
+
right: string;
|
|
189
|
+
musicSrc: string;
|
|
190
|
+
name: string;
|
|
191
|
+
isPlaying: boolean;
|
|
192
|
+
};
|
|
162
193
|
export declare const componentsDefaultProps: {
|
|
163
194
|
'uni-text': {
|
|
164
195
|
props: {
|
|
@@ -190,9 +221,6 @@ export declare const componentsDefaultProps: {
|
|
|
190
221
|
textAlign: string;
|
|
191
222
|
color: string;
|
|
192
223
|
backgroundColor: string;
|
|
193
|
-
display: string;
|
|
194
|
-
alignItems: string;
|
|
195
|
-
justifyContent: string;
|
|
196
224
|
};
|
|
197
225
|
};
|
|
198
226
|
'uni-image': {
|
|
@@ -241,6 +269,44 @@ export declare const componentsDefaultProps: {
|
|
|
241
269
|
backgroundColor: string;
|
|
242
270
|
};
|
|
243
271
|
};
|
|
272
|
+
'uni-background': {
|
|
273
|
+
props: {
|
|
274
|
+
backgroundColor: string;
|
|
275
|
+
backgroundImage: string;
|
|
276
|
+
backgroundSize: string;
|
|
277
|
+
backgroundRepeat: string;
|
|
278
|
+
opacity: number;
|
|
279
|
+
height: string;
|
|
280
|
+
position: string;
|
|
281
|
+
left: string;
|
|
282
|
+
top: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
'uni-music': {
|
|
286
|
+
props: {
|
|
287
|
+
actionType: string;
|
|
288
|
+
url: string;
|
|
289
|
+
height: string;
|
|
290
|
+
width: string;
|
|
291
|
+
paddingLeft: string;
|
|
292
|
+
paddingRight: string;
|
|
293
|
+
paddingTop: string;
|
|
294
|
+
paddingBottom: string;
|
|
295
|
+
borderStyle: string;
|
|
296
|
+
borderColor: string;
|
|
297
|
+
borderWidth: string;
|
|
298
|
+
borderRadius: string;
|
|
299
|
+
boxShadow: string;
|
|
300
|
+
opacity: number;
|
|
301
|
+
position: string;
|
|
302
|
+
left: string;
|
|
303
|
+
top: string;
|
|
304
|
+
right: string;
|
|
305
|
+
musicSrc: string;
|
|
306
|
+
name: string;
|
|
307
|
+
isPlaying: boolean;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
244
310
|
};
|
|
245
311
|
export declare const isEditingProp: {
|
|
246
312
|
isEditing: {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import UniImage from './components/UniImage';
|
|
|
4
4
|
import UniShape from './components/UniShape';
|
|
5
5
|
import LongPage from './components/LongPage';
|
|
6
6
|
import SwiperPage from './components/SwiperPage';
|
|
7
|
+
import UniBackground from './components/UniBackground';
|
|
8
|
+
import UniMusic from './components/UniMusic';
|
|
7
9
|
declare const install: (app: App) => void;
|
|
8
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, install };
|
|
10
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, install };
|
|
9
11
|
declare const _default: {
|
|
10
12
|
install: (app: App<any>) => void;
|
|
11
13
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.uni-image-component {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
h2.uni-text-component, p.uni-text-component {
|
|
7
3
|
margin-bottom: 0;
|
|
8
4
|
}
|
|
@@ -14,3 +10,126 @@ button.uni-text-component {
|
|
|
14
10
|
box-sizing: border-box;
|
|
15
11
|
white-space: pre-wrap;
|
|
16
12
|
}
|
|
13
|
+
|
|
14
|
+
.uni-image-component {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.uni-background-component {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
.bg-img {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
z-index:1;
|
|
26
|
+
}
|
|
27
|
+
.watermark {
|
|
28
|
+
height: 100%;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
.watermark-div {
|
|
36
|
+
height: 100%;
|
|
37
|
+
width:100%;
|
|
38
|
+
position:absolute;
|
|
39
|
+
z-index:99999999;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#audio {
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 10px;
|
|
45
|
+
top: 10px;
|
|
46
|
+
z-index: 103;
|
|
47
|
+
width: 30px;
|
|
48
|
+
height: 30px;
|
|
49
|
+
display: -webkit-box;
|
|
50
|
+
display: -ms-flexbox;
|
|
51
|
+
display: flex;
|
|
52
|
+
-webkit-box-align: center;
|
|
53
|
+
-ms-flex-align: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
#audio .audio {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
display: -webkit-box;
|
|
60
|
+
display: -ms-flexbox;
|
|
61
|
+
display: flex;
|
|
62
|
+
-webkit-box-align: center;
|
|
63
|
+
-ms-flex-align: center;
|
|
64
|
+
align-items: center;
|
|
65
|
+
-webkit-box-pack: center;
|
|
66
|
+
-ms-flex-pack: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
color: #fff;
|
|
69
|
+
background: #666;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
will-change: transform;
|
|
73
|
+
}
|
|
74
|
+
#audio .audio .music-icon {
|
|
75
|
+
display: block;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
}
|
|
79
|
+
#audio .icon-cancel {
|
|
80
|
+
position: absolute;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
border-radius: 50%;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
padding: 14px 0;
|
|
86
|
+
}
|
|
87
|
+
#audio .icon-cancel .icon-h {
|
|
88
|
+
-webkit-transform: rotate(45deg);
|
|
89
|
+
transform: rotate(45deg);
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 2px;
|
|
92
|
+
background: #fff;
|
|
93
|
+
}
|
|
94
|
+
#audio .mrotate {
|
|
95
|
+
-webkit-animation: mrotate 5s linear infinite;
|
|
96
|
+
animation: mrotate 5s linear infinite;
|
|
97
|
+
}
|
|
98
|
+
.video-play-audio {
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: -9999px;
|
|
101
|
+
top: -9999px;
|
|
102
|
+
width: 0;
|
|
103
|
+
height: 0;
|
|
104
|
+
z-index: -1;
|
|
105
|
+
opacity: 1;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.music-img {
|
|
110
|
+
position: relative;
|
|
111
|
+
display: inline-block;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.uni-music-component {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* 无限旋转 */
|
|
120
|
+
@keyframes mrotate {
|
|
121
|
+
from {
|
|
122
|
+
transform: rotate(0deg);
|
|
123
|
+
}
|
|
124
|
+
to {
|
|
125
|
+
transform: rotate(360deg);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@-webkit-keyframes mrotate {
|
|
129
|
+
from {
|
|
130
|
+
-webkit-transform: rotate(0deg);
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
-webkit-transform: rotate(360deg);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps } from 'vue';
|
|
1
|
+
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, resolveComponent, createElementVNode, createVNode, createCommentVNode, pushScopeId, popScopeId, ref, onMounted, normalizeClass } from 'vue';
|
|
2
2
|
|
|
3
3
|
/** Detect free variable `global` from Node.js. */
|
|
4
4
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -3416,9 +3416,6 @@ const textDefaultProps = {
|
|
|
3416
3416
|
textAlign: 'left',
|
|
3417
3417
|
color: '#000000',
|
|
3418
3418
|
backgroundColor: '',
|
|
3419
|
-
display: 'flex',
|
|
3420
|
-
alignItems: 'center',
|
|
3421
|
-
justifyContent: 'center',
|
|
3422
3419
|
...commonDefaultProps
|
|
3423
3420
|
};
|
|
3424
3421
|
const imageDefaultProps = {
|
|
@@ -3429,6 +3426,23 @@ const shapeDefaultProps = {
|
|
|
3429
3426
|
backgroundColor: '',
|
|
3430
3427
|
...commonDefaultProps
|
|
3431
3428
|
};
|
|
3429
|
+
const backgroundDefaultProps = {
|
|
3430
|
+
backgroundColor: '#ffffff',
|
|
3431
|
+
backgroundImage: '',
|
|
3432
|
+
backgroundSize: 'cover',
|
|
3433
|
+
backgroundRepeat: 'no-repeat',
|
|
3434
|
+
opacity: 1,
|
|
3435
|
+
height: '735px',
|
|
3436
|
+
position: 'absolute',
|
|
3437
|
+
left: '0px',
|
|
3438
|
+
top: '0px'
|
|
3439
|
+
};
|
|
3440
|
+
const musicDefaultProps = {
|
|
3441
|
+
musicSrc: '',
|
|
3442
|
+
name: '',
|
|
3443
|
+
isPlaying: false,
|
|
3444
|
+
...commonDefaultProps
|
|
3445
|
+
};
|
|
3432
3446
|
// this contains all default props for all the components
|
|
3433
3447
|
// useful for inserting new component into the store
|
|
3434
3448
|
const componentsDefaultProps = {
|
|
@@ -3440,6 +3454,12 @@ const componentsDefaultProps = {
|
|
|
3440
3454
|
},
|
|
3441
3455
|
'uni-shape': {
|
|
3442
3456
|
props: shapeDefaultProps
|
|
3457
|
+
},
|
|
3458
|
+
'uni-background': {
|
|
3459
|
+
props: backgroundDefaultProps
|
|
3460
|
+
},
|
|
3461
|
+
'uni-music': {
|
|
3462
|
+
props: musicDefaultProps
|
|
3443
3463
|
}
|
|
3444
3464
|
};
|
|
3445
3465
|
const isEditingProp = {
|
|
@@ -3487,12 +3507,12 @@ const extraProps = {
|
|
|
3487
3507
|
},
|
|
3488
3508
|
...isEditingProp
|
|
3489
3509
|
};
|
|
3490
|
-
const defaultProps$
|
|
3510
|
+
const defaultProps$3 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3491
3511
|
// array that contains style props
|
|
3492
|
-
var script$
|
|
3512
|
+
var script$6 = defineComponent({
|
|
3493
3513
|
name: 'uni-text',
|
|
3494
3514
|
props: {
|
|
3495
|
-
...defaultProps$
|
|
3515
|
+
...defaultProps$3
|
|
3496
3516
|
},
|
|
3497
3517
|
setup(props) {
|
|
3498
3518
|
const styleProps = useStylePick(props);
|
|
@@ -3504,7 +3524,7 @@ var script$4 = defineComponent({
|
|
|
3504
3524
|
}
|
|
3505
3525
|
});
|
|
3506
3526
|
|
|
3507
|
-
function render$
|
|
3527
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3508
3528
|
return (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
3509
3529
|
onClick: withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3510
3530
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3517,16 +3537,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3517
3537
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3518
3538
|
}
|
|
3519
3539
|
|
|
3520
|
-
script$
|
|
3521
|
-
script$
|
|
3522
|
-
script$
|
|
3540
|
+
script$6.render = render$6;
|
|
3541
|
+
script$6.__scopeId = "data-v-55ed80cb";
|
|
3542
|
+
script$6.__file = "src/components/UniText/UniText.vue";
|
|
3523
3543
|
|
|
3524
|
-
script$
|
|
3525
|
-
app.component(script$
|
|
3544
|
+
script$6.install = (app) => {
|
|
3545
|
+
app.component(script$6.name, script$6);
|
|
3526
3546
|
};
|
|
3527
3547
|
|
|
3528
3548
|
// array that contains style props
|
|
3529
|
-
var script$
|
|
3549
|
+
var script$5 = defineComponent({
|
|
3530
3550
|
name: 'uni-image',
|
|
3531
3551
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3532
3552
|
setup(props) {
|
|
@@ -3539,32 +3559,32 @@ var script$3 = defineComponent({
|
|
|
3539
3559
|
}
|
|
3540
3560
|
});
|
|
3541
3561
|
|
|
3542
|
-
const _hoisted_1$
|
|
3562
|
+
const _hoisted_1$4 = ["src"];
|
|
3543
3563
|
|
|
3544
|
-
function render$
|
|
3564
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3545
3565
|
return (openBlock(), createElementBlock("img", {
|
|
3546
3566
|
src: _ctx.imageSrc,
|
|
3547
3567
|
style: normalizeStyle(_ctx.styleProps),
|
|
3548
3568
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3549
3569
|
class: "uni-image-component",
|
|
3550
3570
|
draggable: false
|
|
3551
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3571
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
|
|
3552
3572
|
}
|
|
3553
3573
|
|
|
3554
|
-
script$
|
|
3555
|
-
script$
|
|
3556
|
-
script$
|
|
3574
|
+
script$5.render = render$5;
|
|
3575
|
+
script$5.__scopeId = "data-v-03caca2f";
|
|
3576
|
+
script$5.__file = "src/components/UniImage/UniImage.vue";
|
|
3557
3577
|
|
|
3558
|
-
script$
|
|
3559
|
-
app.component(script$
|
|
3578
|
+
script$5.install = (app) => {
|
|
3579
|
+
app.component(script$5.name, script$5);
|
|
3560
3580
|
};
|
|
3561
3581
|
|
|
3562
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3582
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3563
3583
|
// array that contains style props
|
|
3564
|
-
var script$
|
|
3584
|
+
var script$4 = defineComponent({
|
|
3565
3585
|
name: 'uni-shape',
|
|
3566
3586
|
props: {
|
|
3567
|
-
...defaultProps
|
|
3587
|
+
...defaultProps$2
|
|
3568
3588
|
},
|
|
3569
3589
|
setup(props) {
|
|
3570
3590
|
const styleProps = useStylePick(props);
|
|
@@ -3576,7 +3596,7 @@ var script$2 = defineComponent({
|
|
|
3576
3596
|
}
|
|
3577
3597
|
});
|
|
3578
3598
|
|
|
3579
|
-
function render$
|
|
3599
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3580
3600
|
return (openBlock(), createElementBlock("div", {
|
|
3581
3601
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3582
3602
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3585,14 +3605,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3585
3605
|
}, null, 4 /* STYLE */))
|
|
3586
3606
|
}
|
|
3587
3607
|
|
|
3588
|
-
script$
|
|
3589
|
-
script$
|
|
3608
|
+
script$4.render = render$4;
|
|
3609
|
+
script$4.__file = "src/components/UniShape/UniShape.vue";
|
|
3590
3610
|
|
|
3591
|
-
script$
|
|
3592
|
-
app.component(script$
|
|
3611
|
+
script$4.install = (app) => {
|
|
3612
|
+
app.component(script$4.name, script$4);
|
|
3593
3613
|
};
|
|
3594
3614
|
|
|
3595
|
-
var script$
|
|
3615
|
+
var script$3 = defineComponent({
|
|
3596
3616
|
name: 'long-page',
|
|
3597
3617
|
props: {
|
|
3598
3618
|
work: {
|
|
@@ -3605,9 +3625,9 @@ var script$1 = defineComponent({
|
|
|
3605
3625
|
}
|
|
3606
3626
|
});
|
|
3607
3627
|
|
|
3608
|
-
const _hoisted_1$
|
|
3628
|
+
const _hoisted_1$3 = ["id"];
|
|
3609
3629
|
|
|
3610
|
-
function render$
|
|
3630
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3611
3631
|
return (openBlock(), createElementBlock("div", {
|
|
3612
3632
|
class: "final-page",
|
|
3613
3633
|
style: normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3618,20 +3638,20 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3618
3638
|
id: `component-${item.id}`
|
|
3619
3639
|
}, [
|
|
3620
3640
|
(openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3621
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3641
|
+
], 8 /* PROPS */, _hoisted_1$3))
|
|
3622
3642
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3623
3643
|
], 4 /* STYLE */))
|
|
3624
3644
|
}
|
|
3625
3645
|
|
|
3626
|
-
script$
|
|
3627
|
-
script$
|
|
3646
|
+
script$3.render = render$3;
|
|
3647
|
+
script$3.__file = "src/components/LongPage/LongPage.vue";
|
|
3628
3648
|
|
|
3629
3649
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3630
|
-
script$
|
|
3631
|
-
app.component(script$
|
|
3650
|
+
script$3.install = (app) => {
|
|
3651
|
+
app.component(script$3.name, script$3);
|
|
3632
3652
|
};
|
|
3633
3653
|
|
|
3634
|
-
var script = defineComponent({
|
|
3654
|
+
var script$2 = defineComponent({
|
|
3635
3655
|
name: 'swiper-page',
|
|
3636
3656
|
props: {
|
|
3637
3657
|
page: {
|
|
@@ -3644,39 +3664,225 @@ var script = defineComponent({
|
|
|
3644
3664
|
}
|
|
3645
3665
|
});
|
|
3646
3666
|
|
|
3647
|
-
const _hoisted_1 =
|
|
3667
|
+
const _hoisted_1$2 = { class: "swiper-wrapper" };
|
|
3668
|
+
|
|
3669
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3670
|
+
const _component_final_page = resolveComponent("final-page");
|
|
3671
|
+
|
|
3672
|
+
return (openBlock(), createElementBlock("div", {
|
|
3673
|
+
style: normalizeStyle(_ctx.styleProps),
|
|
3674
|
+
class: "swiper-container"
|
|
3675
|
+
}, [
|
|
3676
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
3677
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.slides, (slide, index) => {
|
|
3678
|
+
return (openBlock(), createElementBlock("div", {
|
|
3679
|
+
class: "swiper-slide",
|
|
3680
|
+
key: index
|
|
3681
|
+
}, [
|
|
3682
|
+
createVNode(_component_final_page, {
|
|
3683
|
+
components: _ctx.page.components
|
|
3684
|
+
}, null, 8 /* PROPS */, ["components"])
|
|
3685
|
+
]))
|
|
3686
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3687
|
+
])
|
|
3688
|
+
], 4 /* STYLE */))
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3691
|
+
script$2.render = render$2;
|
|
3692
|
+
script$2.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
3693
|
+
|
|
3694
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3695
|
+
script$2.install = (app) => {
|
|
3696
|
+
app.component(script$2.name, script$2);
|
|
3697
|
+
};
|
|
3698
|
+
|
|
3699
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
3700
|
+
// array that contains style props
|
|
3701
|
+
var script$1 = defineComponent({
|
|
3702
|
+
name: 'uni-background',
|
|
3703
|
+
props: {
|
|
3704
|
+
watermark: {
|
|
3705
|
+
type: Boolean,
|
|
3706
|
+
default: false
|
|
3707
|
+
},
|
|
3708
|
+
...defaultProps$1
|
|
3709
|
+
},
|
|
3710
|
+
components: {},
|
|
3711
|
+
setup(props) {
|
|
3712
|
+
// 重用并且简化
|
|
3713
|
+
// 抽离并且获得 styleProps
|
|
3714
|
+
// const { styleProps, handleClick } = useComponentCommon(props, backgroundStylePropsNames)
|
|
3715
|
+
const styleProps = useStylePick(props);
|
|
3716
|
+
const handleClick = useComponentClick(props);
|
|
3717
|
+
return {
|
|
3718
|
+
styleProps,
|
|
3719
|
+
handleClick
|
|
3720
|
+
};
|
|
3721
|
+
}
|
|
3722
|
+
});
|
|
3723
|
+
|
|
3724
|
+
const _withScopeId$1 = n => (pushScopeId("data-v-04e7238d"),n=n(),popScopeId(),n);
|
|
3725
|
+
const _hoisted_1$1 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("div", { style: {} }, null, -1 /* HOISTED */));
|
|
3726
|
+
const _hoisted_2$1 = ["src"];
|
|
3727
|
+
|
|
3728
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3729
|
+
const _component_a_watermark = resolveComponent("a-watermark");
|
|
3730
|
+
|
|
3731
|
+
return (openBlock(), createElementBlock("div", {
|
|
3732
|
+
style: normalizeStyle(_ctx.styleProps),
|
|
3733
|
+
class: "uni-background-component"
|
|
3734
|
+
}, [
|
|
3735
|
+
(_ctx.watermark)
|
|
3736
|
+
? (openBlock(), createBlock(_component_a_watermark, {
|
|
3737
|
+
key: 0,
|
|
3738
|
+
content: "Unika",
|
|
3739
|
+
class: "watermark"
|
|
3740
|
+
}, {
|
|
3741
|
+
default: withCtx(() => [
|
|
3742
|
+
_hoisted_1$1
|
|
3743
|
+
]),
|
|
3744
|
+
_: 1 /* STABLE */
|
|
3745
|
+
}))
|
|
3746
|
+
: createCommentVNode("v-if", true),
|
|
3747
|
+
(_ctx.backgroundImage !== '')
|
|
3748
|
+
? (openBlock(), createElementBlock("img", {
|
|
3749
|
+
key: 1,
|
|
3750
|
+
src: _ctx.backgroundImage,
|
|
3751
|
+
class: "bg-img"
|
|
3752
|
+
}, null, 8 /* PROPS */, _hoisted_2$1))
|
|
3753
|
+
: createCommentVNode("v-if", true)
|
|
3754
|
+
], 4 /* STYLE */))
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
script$1.render = render$1;
|
|
3758
|
+
script$1.__scopeId = "data-v-04e7238d";
|
|
3759
|
+
script$1.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3760
|
+
|
|
3761
|
+
script$1.install = (app) => {
|
|
3762
|
+
app.component(script$1.name, script$1);
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-music'].props, isEditingProp);
|
|
3766
|
+
// array that contains style props
|
|
3767
|
+
var script = defineComponent({
|
|
3768
|
+
name: 'uni-music',
|
|
3769
|
+
props: {
|
|
3770
|
+
...defaultProps
|
|
3771
|
+
},
|
|
3772
|
+
setup(props) {
|
|
3773
|
+
// 重用并且简化
|
|
3774
|
+
// 抽离并且获得 styleProps
|
|
3775
|
+
const styleProps = useStylePick(props);
|
|
3776
|
+
const handleClick = useComponentClick(props);
|
|
3777
|
+
const isPlaying = ref(false);
|
|
3778
|
+
const audioPlayer = ref(null);
|
|
3779
|
+
const togglePlay = () => {
|
|
3780
|
+
if (!audioPlayer.value)
|
|
3781
|
+
return;
|
|
3782
|
+
isPlaying.value = !isPlaying.value;
|
|
3783
|
+
if (isPlaying.value) {
|
|
3784
|
+
audioPlayer.value && audioPlayer.value.play();
|
|
3785
|
+
}
|
|
3786
|
+
else {
|
|
3787
|
+
audioPlayer.value && audioPlayer.value.pause();
|
|
3788
|
+
}
|
|
3789
|
+
};
|
|
3790
|
+
onMounted(() => {
|
|
3791
|
+
audioPlayer.value = document.querySelector('audio');
|
|
3792
|
+
if (audioPlayer.value && props.isPlaying) {
|
|
3793
|
+
audioPlayer.value.load();
|
|
3794
|
+
audioPlayer.value.play().catch(() => {
|
|
3795
|
+
const playError = ref(true);
|
|
3796
|
+
const event = ['click']; // "touchstart"
|
|
3797
|
+
const pageClick = () => {
|
|
3798
|
+
if (audioPlayer.value && playError.value) {
|
|
3799
|
+
playError.value = false;
|
|
3800
|
+
audioPlayer.value.load();
|
|
3801
|
+
audioPlayer.value.play().catch(() => {
|
|
3802
|
+
playError.value = true;
|
|
3803
|
+
});
|
|
3804
|
+
event.forEach((item) => {
|
|
3805
|
+
document.removeEventListener(item, pageClick);
|
|
3806
|
+
});
|
|
3807
|
+
}
|
|
3808
|
+
};
|
|
3809
|
+
event.forEach((item) => {
|
|
3810
|
+
document.addEventListener(item, pageClick);
|
|
3811
|
+
});
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
});
|
|
3815
|
+
return {
|
|
3816
|
+
styleProps,
|
|
3817
|
+
handleClick,
|
|
3818
|
+
isPlaying,
|
|
3819
|
+
togglePlay
|
|
3820
|
+
};
|
|
3821
|
+
}
|
|
3822
|
+
});
|
|
3823
|
+
|
|
3824
|
+
const _withScopeId = n => (pushScopeId("data-v-99922522"),n=n(),popScopeId(),n);
|
|
3825
|
+
const _hoisted_1 = {
|
|
3826
|
+
id: "audio",
|
|
3827
|
+
class: "uni-music-component"
|
|
3828
|
+
};
|
|
3829
|
+
const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/createElementVNode("img", {
|
|
3830
|
+
src: "https://unika-static-dev.oss-ap-southeast-7.aliyuncs.com/components/music2.png",
|
|
3831
|
+
class: "music-icon"
|
|
3832
|
+
}, null, -1 /* HOISTED */));
|
|
3833
|
+
const _hoisted_3 = { class: "icon-cancel" };
|
|
3834
|
+
const _hoisted_4 = {
|
|
3835
|
+
key: 0,
|
|
3836
|
+
class: "icon-h"
|
|
3837
|
+
};
|
|
3838
|
+
const _hoisted_5 = ["src"];
|
|
3648
3839
|
|
|
3649
3840
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3650
3841
|
return (openBlock(), createElementBlock("div", {
|
|
3651
|
-
|
|
3652
|
-
style: normalizeStyle(_ctx.page && _ctx.page.props)
|
|
3842
|
+
style: normalizeStyle(_ctx.styleProps)
|
|
3653
3843
|
}, [
|
|
3654
|
-
(
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3844
|
+
createElementVNode("div", _hoisted_1, [
|
|
3845
|
+
createElementVNode("div", {
|
|
3846
|
+
class: normalizeClass({ mrotate: _ctx.isPlaying, audio: true }),
|
|
3847
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.togglePlay && _ctx.togglePlay(...args)))
|
|
3658
3848
|
}, [
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3849
|
+
_hoisted_2,
|
|
3850
|
+
createElementVNode("div", _hoisted_3, [
|
|
3851
|
+
(!_ctx.isPlaying)
|
|
3852
|
+
? (openBlock(), createElementBlock("div", _hoisted_4))
|
|
3853
|
+
: createCommentVNode("v-if", true)
|
|
3854
|
+
])
|
|
3855
|
+
], 2 /* CLASS */),
|
|
3856
|
+
createElementVNode("audio", {
|
|
3857
|
+
style: {"display":"none"},
|
|
3858
|
+
ref: "audioPlayer",
|
|
3859
|
+
src: _ctx.musicSrc,
|
|
3860
|
+
autoplay: "",
|
|
3861
|
+
controls: "",
|
|
3862
|
+
loop: "",
|
|
3863
|
+
preload: "auto"
|
|
3864
|
+
}, null, 8 /* PROPS */, _hoisted_5)
|
|
3865
|
+
])
|
|
3662
3866
|
], 4 /* STYLE */))
|
|
3663
3867
|
}
|
|
3664
3868
|
|
|
3665
3869
|
script.render = render;
|
|
3666
|
-
script.
|
|
3870
|
+
script.__scopeId = "data-v-99922522";
|
|
3871
|
+
script.__file = "src/components/UniMusic/UniMusic.vue";
|
|
3667
3872
|
|
|
3668
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3669
3873
|
script.install = (app) => {
|
|
3670
3874
|
app.component(script.name, script);
|
|
3671
3875
|
};
|
|
3672
3876
|
|
|
3673
3877
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3674
3878
|
const components = [
|
|
3879
|
+
script$6,
|
|
3880
|
+
script$5,
|
|
3675
3881
|
script$4,
|
|
3676
3882
|
script$3,
|
|
3677
3883
|
script$2,
|
|
3678
3884
|
script$1,
|
|
3679
|
-
script
|
|
3885
|
+
script,
|
|
3680
3886
|
];
|
|
3681
3887
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
3682
3888
|
const install = (app) => {
|
|
@@ -3688,4 +3894,4 @@ var index = {
|
|
|
3688
3894
|
install
|
|
3689
3895
|
};
|
|
3690
3896
|
|
|
3691
|
-
export { script$
|
|
3897
|
+
export { script$3 as LongPage, script$2 as SwiperPage, script$1 as UniBackground, script$5 as UniImage, script as UniMusic, script$4 as UniShape, script$6 as UniText, index as default, install };
|
|
@@ -3420,9 +3420,6 @@
|
|
|
3420
3420
|
textAlign: 'left',
|
|
3421
3421
|
color: '#000000',
|
|
3422
3422
|
backgroundColor: '',
|
|
3423
|
-
display: 'flex',
|
|
3424
|
-
alignItems: 'center',
|
|
3425
|
-
justifyContent: 'center',
|
|
3426
3423
|
...commonDefaultProps
|
|
3427
3424
|
};
|
|
3428
3425
|
const imageDefaultProps = {
|
|
@@ -3433,6 +3430,23 @@
|
|
|
3433
3430
|
backgroundColor: '',
|
|
3434
3431
|
...commonDefaultProps
|
|
3435
3432
|
};
|
|
3433
|
+
const backgroundDefaultProps = {
|
|
3434
|
+
backgroundColor: '#ffffff',
|
|
3435
|
+
backgroundImage: '',
|
|
3436
|
+
backgroundSize: 'cover',
|
|
3437
|
+
backgroundRepeat: 'no-repeat',
|
|
3438
|
+
opacity: 1,
|
|
3439
|
+
height: '735px',
|
|
3440
|
+
position: 'absolute',
|
|
3441
|
+
left: '0px',
|
|
3442
|
+
top: '0px'
|
|
3443
|
+
};
|
|
3444
|
+
const musicDefaultProps = {
|
|
3445
|
+
musicSrc: '',
|
|
3446
|
+
name: '',
|
|
3447
|
+
isPlaying: false,
|
|
3448
|
+
...commonDefaultProps
|
|
3449
|
+
};
|
|
3436
3450
|
// this contains all default props for all the components
|
|
3437
3451
|
// useful for inserting new component into the store
|
|
3438
3452
|
const componentsDefaultProps = {
|
|
@@ -3444,6 +3458,12 @@
|
|
|
3444
3458
|
},
|
|
3445
3459
|
'uni-shape': {
|
|
3446
3460
|
props: shapeDefaultProps
|
|
3461
|
+
},
|
|
3462
|
+
'uni-background': {
|
|
3463
|
+
props: backgroundDefaultProps
|
|
3464
|
+
},
|
|
3465
|
+
'uni-music': {
|
|
3466
|
+
props: musicDefaultProps
|
|
3447
3467
|
}
|
|
3448
3468
|
};
|
|
3449
3469
|
const isEditingProp = {
|
|
@@ -3491,12 +3511,12 @@
|
|
|
3491
3511
|
},
|
|
3492
3512
|
...isEditingProp
|
|
3493
3513
|
};
|
|
3494
|
-
const defaultProps$
|
|
3514
|
+
const defaultProps$3 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3495
3515
|
// array that contains style props
|
|
3496
|
-
var script$
|
|
3516
|
+
var script$6 = vue.defineComponent({
|
|
3497
3517
|
name: 'uni-text',
|
|
3498
3518
|
props: {
|
|
3499
|
-
...defaultProps$
|
|
3519
|
+
...defaultProps$3
|
|
3500
3520
|
},
|
|
3501
3521
|
setup(props) {
|
|
3502
3522
|
const styleProps = useStylePick(props);
|
|
@@ -3508,7 +3528,7 @@
|
|
|
3508
3528
|
}
|
|
3509
3529
|
});
|
|
3510
3530
|
|
|
3511
|
-
function render$
|
|
3531
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3512
3532
|
return (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
3513
3533
|
onClick: vue.withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3514
3534
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3521,16 +3541,16 @@
|
|
|
3521
3541
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3522
3542
|
}
|
|
3523
3543
|
|
|
3524
|
-
script$
|
|
3525
|
-
script$
|
|
3526
|
-
script$
|
|
3544
|
+
script$6.render = render$6;
|
|
3545
|
+
script$6.__scopeId = "data-v-55ed80cb";
|
|
3546
|
+
script$6.__file = "src/components/UniText/UniText.vue";
|
|
3527
3547
|
|
|
3528
|
-
script$
|
|
3529
|
-
app.component(script$
|
|
3548
|
+
script$6.install = (app) => {
|
|
3549
|
+
app.component(script$6.name, script$6);
|
|
3530
3550
|
};
|
|
3531
3551
|
|
|
3532
3552
|
// array that contains style props
|
|
3533
|
-
var script$
|
|
3553
|
+
var script$5 = vue.defineComponent({
|
|
3534
3554
|
name: 'uni-image',
|
|
3535
3555
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3536
3556
|
setup(props) {
|
|
@@ -3543,32 +3563,32 @@
|
|
|
3543
3563
|
}
|
|
3544
3564
|
});
|
|
3545
3565
|
|
|
3546
|
-
const _hoisted_1$
|
|
3566
|
+
const _hoisted_1$4 = ["src"];
|
|
3547
3567
|
|
|
3548
|
-
function render$
|
|
3568
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3549
3569
|
return (vue.openBlock(), vue.createElementBlock("img", {
|
|
3550
3570
|
src: _ctx.imageSrc,
|
|
3551
3571
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3552
3572
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3553
3573
|
class: "uni-image-component",
|
|
3554
3574
|
draggable: false
|
|
3555
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3575
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
|
|
3556
3576
|
}
|
|
3557
3577
|
|
|
3558
|
-
script$
|
|
3559
|
-
script$
|
|
3560
|
-
script$
|
|
3578
|
+
script$5.render = render$5;
|
|
3579
|
+
script$5.__scopeId = "data-v-03caca2f";
|
|
3580
|
+
script$5.__file = "src/components/UniImage/UniImage.vue";
|
|
3561
3581
|
|
|
3562
|
-
script$
|
|
3563
|
-
app.component(script$
|
|
3582
|
+
script$5.install = (app) => {
|
|
3583
|
+
app.component(script$5.name, script$5);
|
|
3564
3584
|
};
|
|
3565
3585
|
|
|
3566
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3586
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3567
3587
|
// array that contains style props
|
|
3568
|
-
var script$
|
|
3588
|
+
var script$4 = vue.defineComponent({
|
|
3569
3589
|
name: 'uni-shape',
|
|
3570
3590
|
props: {
|
|
3571
|
-
...defaultProps
|
|
3591
|
+
...defaultProps$2
|
|
3572
3592
|
},
|
|
3573
3593
|
setup(props) {
|
|
3574
3594
|
const styleProps = useStylePick(props);
|
|
@@ -3580,7 +3600,7 @@
|
|
|
3580
3600
|
}
|
|
3581
3601
|
});
|
|
3582
3602
|
|
|
3583
|
-
function render$
|
|
3603
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3584
3604
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3585
3605
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3586
3606
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3589,14 +3609,14 @@
|
|
|
3589
3609
|
}, null, 4 /* STYLE */))
|
|
3590
3610
|
}
|
|
3591
3611
|
|
|
3592
|
-
script$
|
|
3593
|
-
script$
|
|
3612
|
+
script$4.render = render$4;
|
|
3613
|
+
script$4.__file = "src/components/UniShape/UniShape.vue";
|
|
3594
3614
|
|
|
3595
|
-
script$
|
|
3596
|
-
app.component(script$
|
|
3615
|
+
script$4.install = (app) => {
|
|
3616
|
+
app.component(script$4.name, script$4);
|
|
3597
3617
|
};
|
|
3598
3618
|
|
|
3599
|
-
var script$
|
|
3619
|
+
var script$3 = vue.defineComponent({
|
|
3600
3620
|
name: 'long-page',
|
|
3601
3621
|
props: {
|
|
3602
3622
|
work: {
|
|
@@ -3609,9 +3629,9 @@
|
|
|
3609
3629
|
}
|
|
3610
3630
|
});
|
|
3611
3631
|
|
|
3612
|
-
const _hoisted_1$
|
|
3632
|
+
const _hoisted_1$3 = ["id"];
|
|
3613
3633
|
|
|
3614
|
-
function render$
|
|
3634
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3615
3635
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3616
3636
|
class: "final-page",
|
|
3617
3637
|
style: vue.normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3622,20 +3642,20 @@
|
|
|
3622
3642
|
id: `component-${item.id}`
|
|
3623
3643
|
}, [
|
|
3624
3644
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3625
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3645
|
+
], 8 /* PROPS */, _hoisted_1$3))
|
|
3626
3646
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3627
3647
|
], 4 /* STYLE */))
|
|
3628
3648
|
}
|
|
3629
3649
|
|
|
3630
|
-
script$
|
|
3631
|
-
script$
|
|
3650
|
+
script$3.render = render$3;
|
|
3651
|
+
script$3.__file = "src/components/LongPage/LongPage.vue";
|
|
3632
3652
|
|
|
3633
3653
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3634
|
-
script$
|
|
3635
|
-
app.component(script$
|
|
3654
|
+
script$3.install = (app) => {
|
|
3655
|
+
app.component(script$3.name, script$3);
|
|
3636
3656
|
};
|
|
3637
3657
|
|
|
3638
|
-
var script = vue.defineComponent({
|
|
3658
|
+
var script$2 = vue.defineComponent({
|
|
3639
3659
|
name: 'swiper-page',
|
|
3640
3660
|
props: {
|
|
3641
3661
|
page: {
|
|
@@ -3648,39 +3668,225 @@
|
|
|
3648
3668
|
}
|
|
3649
3669
|
});
|
|
3650
3670
|
|
|
3651
|
-
const _hoisted_1 =
|
|
3671
|
+
const _hoisted_1$2 = { class: "swiper-wrapper" };
|
|
3672
|
+
|
|
3673
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3674
|
+
const _component_final_page = vue.resolveComponent("final-page");
|
|
3675
|
+
|
|
3676
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3677
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3678
|
+
class: "swiper-container"
|
|
3679
|
+
}, [
|
|
3680
|
+
vue.createElementVNode("div", _hoisted_1$2, [
|
|
3681
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.slides, (slide, index) => {
|
|
3682
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3683
|
+
class: "swiper-slide",
|
|
3684
|
+
key: index
|
|
3685
|
+
}, [
|
|
3686
|
+
vue.createVNode(_component_final_page, {
|
|
3687
|
+
components: _ctx.page.components
|
|
3688
|
+
}, null, 8 /* PROPS */, ["components"])
|
|
3689
|
+
]))
|
|
3690
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3691
|
+
])
|
|
3692
|
+
], 4 /* STYLE */))
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
script$2.render = render$2;
|
|
3696
|
+
script$2.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
3697
|
+
|
|
3698
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3699
|
+
script$2.install = (app) => {
|
|
3700
|
+
app.component(script$2.name, script$2);
|
|
3701
|
+
};
|
|
3702
|
+
|
|
3703
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
3704
|
+
// array that contains style props
|
|
3705
|
+
var script$1 = vue.defineComponent({
|
|
3706
|
+
name: 'uni-background',
|
|
3707
|
+
props: {
|
|
3708
|
+
watermark: {
|
|
3709
|
+
type: Boolean,
|
|
3710
|
+
default: false
|
|
3711
|
+
},
|
|
3712
|
+
...defaultProps$1
|
|
3713
|
+
},
|
|
3714
|
+
components: {},
|
|
3715
|
+
setup(props) {
|
|
3716
|
+
// 重用并且简化
|
|
3717
|
+
// 抽离并且获得 styleProps
|
|
3718
|
+
// const { styleProps, handleClick } = useComponentCommon(props, backgroundStylePropsNames)
|
|
3719
|
+
const styleProps = useStylePick(props);
|
|
3720
|
+
const handleClick = useComponentClick(props);
|
|
3721
|
+
return {
|
|
3722
|
+
styleProps,
|
|
3723
|
+
handleClick
|
|
3724
|
+
};
|
|
3725
|
+
}
|
|
3726
|
+
});
|
|
3727
|
+
|
|
3728
|
+
const _withScopeId$1 = n => (vue.pushScopeId("data-v-04e7238d"),n=n(),vue.popScopeId(),n);
|
|
3729
|
+
const _hoisted_1$1 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("div", { style: {} }, null, -1 /* HOISTED */));
|
|
3730
|
+
const _hoisted_2$1 = ["src"];
|
|
3731
|
+
|
|
3732
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3733
|
+
const _component_a_watermark = vue.resolveComponent("a-watermark");
|
|
3734
|
+
|
|
3735
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3736
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3737
|
+
class: "uni-background-component"
|
|
3738
|
+
}, [
|
|
3739
|
+
(_ctx.watermark)
|
|
3740
|
+
? (vue.openBlock(), vue.createBlock(_component_a_watermark, {
|
|
3741
|
+
key: 0,
|
|
3742
|
+
content: "Unika",
|
|
3743
|
+
class: "watermark"
|
|
3744
|
+
}, {
|
|
3745
|
+
default: vue.withCtx(() => [
|
|
3746
|
+
_hoisted_1$1
|
|
3747
|
+
]),
|
|
3748
|
+
_: 1 /* STABLE */
|
|
3749
|
+
}))
|
|
3750
|
+
: vue.createCommentVNode("v-if", true),
|
|
3751
|
+
(_ctx.backgroundImage !== '')
|
|
3752
|
+
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
3753
|
+
key: 1,
|
|
3754
|
+
src: _ctx.backgroundImage,
|
|
3755
|
+
class: "bg-img"
|
|
3756
|
+
}, null, 8 /* PROPS */, _hoisted_2$1))
|
|
3757
|
+
: vue.createCommentVNode("v-if", true)
|
|
3758
|
+
], 4 /* STYLE */))
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
script$1.render = render$1;
|
|
3762
|
+
script$1.__scopeId = "data-v-04e7238d";
|
|
3763
|
+
script$1.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3764
|
+
|
|
3765
|
+
script$1.install = (app) => {
|
|
3766
|
+
app.component(script$1.name, script$1);
|
|
3767
|
+
};
|
|
3768
|
+
|
|
3769
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-music'].props, isEditingProp);
|
|
3770
|
+
// array that contains style props
|
|
3771
|
+
var script = vue.defineComponent({
|
|
3772
|
+
name: 'uni-music',
|
|
3773
|
+
props: {
|
|
3774
|
+
...defaultProps
|
|
3775
|
+
},
|
|
3776
|
+
setup(props) {
|
|
3777
|
+
// 重用并且简化
|
|
3778
|
+
// 抽离并且获得 styleProps
|
|
3779
|
+
const styleProps = useStylePick(props);
|
|
3780
|
+
const handleClick = useComponentClick(props);
|
|
3781
|
+
const isPlaying = vue.ref(false);
|
|
3782
|
+
const audioPlayer = vue.ref(null);
|
|
3783
|
+
const togglePlay = () => {
|
|
3784
|
+
if (!audioPlayer.value)
|
|
3785
|
+
return;
|
|
3786
|
+
isPlaying.value = !isPlaying.value;
|
|
3787
|
+
if (isPlaying.value) {
|
|
3788
|
+
audioPlayer.value && audioPlayer.value.play();
|
|
3789
|
+
}
|
|
3790
|
+
else {
|
|
3791
|
+
audioPlayer.value && audioPlayer.value.pause();
|
|
3792
|
+
}
|
|
3793
|
+
};
|
|
3794
|
+
vue.onMounted(() => {
|
|
3795
|
+
audioPlayer.value = document.querySelector('audio');
|
|
3796
|
+
if (audioPlayer.value && props.isPlaying) {
|
|
3797
|
+
audioPlayer.value.load();
|
|
3798
|
+
audioPlayer.value.play().catch(() => {
|
|
3799
|
+
const playError = vue.ref(true);
|
|
3800
|
+
const event = ['click']; // "touchstart"
|
|
3801
|
+
const pageClick = () => {
|
|
3802
|
+
if (audioPlayer.value && playError.value) {
|
|
3803
|
+
playError.value = false;
|
|
3804
|
+
audioPlayer.value.load();
|
|
3805
|
+
audioPlayer.value.play().catch(() => {
|
|
3806
|
+
playError.value = true;
|
|
3807
|
+
});
|
|
3808
|
+
event.forEach((item) => {
|
|
3809
|
+
document.removeEventListener(item, pageClick);
|
|
3810
|
+
});
|
|
3811
|
+
}
|
|
3812
|
+
};
|
|
3813
|
+
event.forEach((item) => {
|
|
3814
|
+
document.addEventListener(item, pageClick);
|
|
3815
|
+
});
|
|
3816
|
+
});
|
|
3817
|
+
}
|
|
3818
|
+
});
|
|
3819
|
+
return {
|
|
3820
|
+
styleProps,
|
|
3821
|
+
handleClick,
|
|
3822
|
+
isPlaying,
|
|
3823
|
+
togglePlay
|
|
3824
|
+
};
|
|
3825
|
+
}
|
|
3826
|
+
});
|
|
3827
|
+
|
|
3828
|
+
const _withScopeId = n => (vue.pushScopeId("data-v-99922522"),n=n(),vue.popScopeId(),n);
|
|
3829
|
+
const _hoisted_1 = {
|
|
3830
|
+
id: "audio",
|
|
3831
|
+
class: "uni-music-component"
|
|
3832
|
+
};
|
|
3833
|
+
const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("img", {
|
|
3834
|
+
src: "https://unika-static-dev.oss-ap-southeast-7.aliyuncs.com/components/music2.png",
|
|
3835
|
+
class: "music-icon"
|
|
3836
|
+
}, null, -1 /* HOISTED */));
|
|
3837
|
+
const _hoisted_3 = { class: "icon-cancel" };
|
|
3838
|
+
const _hoisted_4 = {
|
|
3839
|
+
key: 0,
|
|
3840
|
+
class: "icon-h"
|
|
3841
|
+
};
|
|
3842
|
+
const _hoisted_5 = ["src"];
|
|
3652
3843
|
|
|
3653
3844
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3654
3845
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3655
|
-
|
|
3656
|
-
style: vue.normalizeStyle(_ctx.page && _ctx.page.props)
|
|
3846
|
+
style: vue.normalizeStyle(_ctx.styleProps)
|
|
3657
3847
|
}, [
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3848
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
3849
|
+
vue.createElementVNode("div", {
|
|
3850
|
+
class: vue.normalizeClass({ mrotate: _ctx.isPlaying, audio: true }),
|
|
3851
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.togglePlay && _ctx.togglePlay(...args)))
|
|
3662
3852
|
}, [
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3853
|
+
_hoisted_2,
|
|
3854
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
3855
|
+
(!_ctx.isPlaying)
|
|
3856
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4))
|
|
3857
|
+
: vue.createCommentVNode("v-if", true)
|
|
3858
|
+
])
|
|
3859
|
+
], 2 /* CLASS */),
|
|
3860
|
+
vue.createElementVNode("audio", {
|
|
3861
|
+
style: {"display":"none"},
|
|
3862
|
+
ref: "audioPlayer",
|
|
3863
|
+
src: _ctx.musicSrc,
|
|
3864
|
+
autoplay: "",
|
|
3865
|
+
controls: "",
|
|
3866
|
+
loop: "",
|
|
3867
|
+
preload: "auto"
|
|
3868
|
+
}, null, 8 /* PROPS */, _hoisted_5)
|
|
3869
|
+
])
|
|
3666
3870
|
], 4 /* STYLE */))
|
|
3667
3871
|
}
|
|
3668
3872
|
|
|
3669
3873
|
script.render = render;
|
|
3670
|
-
script.
|
|
3874
|
+
script.__scopeId = "data-v-99922522";
|
|
3875
|
+
script.__file = "src/components/UniMusic/UniMusic.vue";
|
|
3671
3876
|
|
|
3672
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3673
3877
|
script.install = (app) => {
|
|
3674
3878
|
app.component(script.name, script);
|
|
3675
3879
|
};
|
|
3676
3880
|
|
|
3677
3881
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3678
3882
|
const components = [
|
|
3883
|
+
script$6,
|
|
3884
|
+
script$5,
|
|
3679
3885
|
script$4,
|
|
3680
3886
|
script$3,
|
|
3681
3887
|
script$2,
|
|
3682
3888
|
script$1,
|
|
3683
|
-
script
|
|
3889
|
+
script,
|
|
3684
3890
|
];
|
|
3685
3891
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
3686
3892
|
const install = (app) => {
|
|
@@ -3692,11 +3898,13 @@
|
|
|
3692
3898
|
install
|
|
3693
3899
|
};
|
|
3694
3900
|
|
|
3695
|
-
exports.LongPage = script$
|
|
3696
|
-
exports.SwiperPage = script;
|
|
3697
|
-
exports.
|
|
3698
|
-
exports.
|
|
3699
|
-
exports.
|
|
3901
|
+
exports.LongPage = script$3;
|
|
3902
|
+
exports.SwiperPage = script$2;
|
|
3903
|
+
exports.UniBackground = script$1;
|
|
3904
|
+
exports.UniImage = script$5;
|
|
3905
|
+
exports.UniMusic = script;
|
|
3906
|
+
exports.UniShape = script$4;
|
|
3907
|
+
exports.UniText = script$6;
|
|
3700
3908
|
exports["default"] = index;
|
|
3701
3909
|
exports.install = install;
|
|
3702
3910
|
|