unika-components 1.0.232 → 1.0.233
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.
|
@@ -330,6 +330,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
330
330
|
loopC: import("vue").Ref<any>;
|
|
331
331
|
delayC: import("vue").Ref<any>;
|
|
332
332
|
animationLinkC: import("vue").Ref<any>;
|
|
333
|
+
lottieKey: import("vue").Ref<number>;
|
|
333
334
|
play: () => void;
|
|
334
335
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
335
336
|
[x: string]: any;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
.uni-image-component {
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
h2.uni-text-component, p.uni-text-component {
|
|
3
7
|
margin-bottom: 0;
|
|
4
8
|
}
|
|
@@ -10,6 +14,40 @@ button.uni-text-component {
|
|
|
10
14
|
box-sizing: border-box;
|
|
11
15
|
white-space: pre-wrap;
|
|
12
16
|
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.uni-calendar-component {
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
.slot-number {
|
|
23
|
+
position: absolute;
|
|
24
|
+
bottom: 2px;
|
|
25
|
+
left: 7px;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
color: #666
|
|
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
|
+
}
|
|
13
51
|
|
|
14
52
|
.slide-guide {
|
|
15
53
|
position: absolute;
|
|
@@ -83,32 +121,6 @@ body, html {
|
|
|
83
121
|
transform: translate3d(-50%, -50%, 0);
|
|
84
122
|
}
|
|
85
123
|
}
|
|
86
|
-
|
|
87
|
-
.uni-image-component {
|
|
88
|
-
max-width: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.like-button {
|
|
92
|
-
display: flex;
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
align-items: center;
|
|
95
|
-
cursor: pointer;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.icon-heart {
|
|
99
|
-
font-size: 24px;
|
|
100
|
-
color: #e74c3c;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.liked {
|
|
104
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.like-count {
|
|
108
|
-
margin-top: 4px;
|
|
109
|
-
font-size: 16px;
|
|
110
|
-
color: #333;
|
|
111
|
-
}
|
|
112
124
|
|
|
113
125
|
.uni-video-component {
|
|
114
126
|
position: relative;
|
|
@@ -131,16 +143,9 @@ body, html {
|
|
|
131
143
|
background: rgba(0, 0, 0, 0.8);
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
.slot-number {
|
|
139
|
-
position: absolute;
|
|
140
|
-
bottom: 2px;
|
|
141
|
-
left: 7px;
|
|
142
|
-
font-size: 12px;
|
|
143
|
-
color: #666
|
|
146
|
+
.effect {
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
.swiper-warp {
|
|
@@ -157,6 +162,9 @@ body, html {
|
|
|
157
162
|
max-height: 100%;
|
|
158
163
|
}
|
|
159
164
|
|
|
165
|
+
.uni-build-up-component {
|
|
166
|
+
}
|
|
167
|
+
|
|
160
168
|
.ant-input-number {
|
|
161
169
|
box-sizing: border-box;
|
|
162
170
|
margin: 0;
|
|
@@ -191,14 +199,6 @@ body, html {
|
|
|
191
199
|
margin-bottom: 0px;
|
|
192
200
|
vertical-align: top;
|
|
193
201
|
}
|
|
194
|
-
|
|
195
|
-
.effect {
|
|
196
|
-
width: 100%;
|
|
197
|
-
height: 100%;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.uni-build-up-component {
|
|
201
|
-
}
|
|
202
202
|
|
|
203
203
|
.uni-svg-component {
|
|
204
204
|
display: inline-block;
|
|
@@ -75325,10 +75325,6 @@ var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
|
75325
75325
|
|
|
75326
75326
|
const defaultProps$4 = transformToComponentProps(componentsDefaultProps['uni-lotties'].props, isEditingProp);
|
|
75327
75327
|
const defaultStyles$3 = without$1(Object.keys(lottiesDefaultProps), 'actionType', 'url', 'animationLink', 'loop', 'delay', 'pauseAnimation');
|
|
75328
|
-
// import AstronautJSON from './lotties/carton.json'
|
|
75329
|
-
// import zlweddingbai from './lotties/zlweddingbai.json'
|
|
75330
|
-
// https://assets10.lottiefiles.com/packages/lf20_soCRuE.json
|
|
75331
|
-
// array that contains style props
|
|
75332
75328
|
var script$5 = defineComponent({
|
|
75333
75329
|
name: 'uni-lotties',
|
|
75334
75330
|
props: {
|
|
@@ -75338,34 +75334,18 @@ var script$5 = defineComponent({
|
|
|
75338
75334
|
Vue3Lottie
|
|
75339
75335
|
},
|
|
75340
75336
|
setup(props) {
|
|
75341
|
-
// 重用并且简化
|
|
75342
|
-
// 抽离并且获得 styleProps
|
|
75343
75337
|
const styleProps = useStylePick(props, defaultStyles$3);
|
|
75344
75338
|
const handleClick = useComponentClick(props);
|
|
75345
75339
|
const lottieAnimation = ref(null);
|
|
75346
75340
|
const loopC = ref(props.loop);
|
|
75347
75341
|
const delayC = ref(props.delay);
|
|
75348
75342
|
const animationLinkC = ref(props.animationLink);
|
|
75349
|
-
|
|
75350
|
-
|
|
75351
|
-
|
|
75352
|
-
|
|
75353
|
-
|
|
75354
|
-
|
|
75355
|
-
}, { deep: true });
|
|
75356
|
-
watch(() => props.delay, (newValue, oldValue) => {
|
|
75357
|
-
delayC.value = newValue;
|
|
75358
|
-
animationLinkC.value = props.animationLink;
|
|
75359
|
-
setTimeout(() => {
|
|
75360
|
-
animationLinkC.value = props.animationLink;
|
|
75361
|
-
}, 10);
|
|
75362
|
-
}, { deep: true });
|
|
75363
|
-
watch(() => props.animationLink, (newValue, oldValue) => {
|
|
75364
|
-
animationLinkC.value = newValue;
|
|
75365
|
-
animationLinkC.value = props.animationLink;
|
|
75366
|
-
setTimeout(() => {
|
|
75367
|
-
animationLinkC.value = props.animationLink;
|
|
75368
|
-
}, 10);
|
|
75343
|
+
const lottieKey = ref(0);
|
|
75344
|
+
watch([() => props.loop, () => props.delay, () => props.animationLink], ([newLoop, newDelay, newAnimationLink]) => {
|
|
75345
|
+
loopC.value = newLoop;
|
|
75346
|
+
delayC.value = newDelay;
|
|
75347
|
+
animationLinkC.value = newAnimationLink;
|
|
75348
|
+
lottieKey.value += 1; // 更新 key 值,强制重新渲染组件
|
|
75369
75349
|
}, { deep: true });
|
|
75370
75350
|
const play = () => {
|
|
75371
75351
|
if (lottieAnimation.value) {
|
|
@@ -75375,12 +75355,12 @@ var script$5 = defineComponent({
|
|
|
75375
75355
|
};
|
|
75376
75356
|
return {
|
|
75377
75357
|
styleProps,
|
|
75378
|
-
// AstronautJSON,
|
|
75379
75358
|
handleClick,
|
|
75380
75359
|
lottieAnimation,
|
|
75381
75360
|
loopC,
|
|
75382
75361
|
delayC,
|
|
75383
75362
|
animationLinkC,
|
|
75363
|
+
lottieKey,
|
|
75384
75364
|
play
|
|
75385
75365
|
};
|
|
75386
75366
|
}
|
|
@@ -75395,6 +75375,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75395
75375
|
animationLink: _ctx.animationLinkC,
|
|
75396
75376
|
loop: _ctx.loopC,
|
|
75397
75377
|
delay: _ctx.delayC,
|
|
75378
|
+
key: _ctx.lottieKey,
|
|
75398
75379
|
ref: "lottieAnimation",
|
|
75399
75380
|
class: "uni-lotties-component inner-component"
|
|
75400
75381
|
}, null, 8 /* PROPS */, ["onClick", "style", "animationLink", "loop", "delay"]))
|
|
@@ -75332,10 +75332,6 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75332
75332
|
|
|
75333
75333
|
const defaultProps$4 = transformToComponentProps(componentsDefaultProps['uni-lotties'].props, isEditingProp);
|
|
75334
75334
|
const defaultStyles$3 = without$1(Object.keys(lottiesDefaultProps), 'actionType', 'url', 'animationLink', 'loop', 'delay', 'pauseAnimation');
|
|
75335
|
-
// import AstronautJSON from './lotties/carton.json'
|
|
75336
|
-
// import zlweddingbai from './lotties/zlweddingbai.json'
|
|
75337
|
-
// https://assets10.lottiefiles.com/packages/lf20_soCRuE.json
|
|
75338
|
-
// array that contains style props
|
|
75339
75335
|
var script$5 = vue.defineComponent({
|
|
75340
75336
|
name: 'uni-lotties',
|
|
75341
75337
|
props: {
|
|
@@ -75345,34 +75341,18 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75345
75341
|
Vue3Lottie
|
|
75346
75342
|
},
|
|
75347
75343
|
setup(props) {
|
|
75348
|
-
// 重用并且简化
|
|
75349
|
-
// 抽离并且获得 styleProps
|
|
75350
75344
|
const styleProps = useStylePick(props, defaultStyles$3);
|
|
75351
75345
|
const handleClick = useComponentClick(props);
|
|
75352
75346
|
const lottieAnimation = vue.ref(null);
|
|
75353
75347
|
const loopC = vue.ref(props.loop);
|
|
75354
75348
|
const delayC = vue.ref(props.delay);
|
|
75355
75349
|
const animationLinkC = vue.ref(props.animationLink);
|
|
75356
|
-
|
|
75357
|
-
|
|
75358
|
-
|
|
75359
|
-
|
|
75360
|
-
|
|
75361
|
-
|
|
75362
|
-
}, { deep: true });
|
|
75363
|
-
vue.watch(() => props.delay, (newValue, oldValue) => {
|
|
75364
|
-
delayC.value = newValue;
|
|
75365
|
-
animationLinkC.value = props.animationLink;
|
|
75366
|
-
setTimeout(() => {
|
|
75367
|
-
animationLinkC.value = props.animationLink;
|
|
75368
|
-
}, 10);
|
|
75369
|
-
}, { deep: true });
|
|
75370
|
-
vue.watch(() => props.animationLink, (newValue, oldValue) => {
|
|
75371
|
-
animationLinkC.value = newValue;
|
|
75372
|
-
animationLinkC.value = props.animationLink;
|
|
75373
|
-
setTimeout(() => {
|
|
75374
|
-
animationLinkC.value = props.animationLink;
|
|
75375
|
-
}, 10);
|
|
75350
|
+
const lottieKey = vue.ref(0);
|
|
75351
|
+
vue.watch([() => props.loop, () => props.delay, () => props.animationLink], ([newLoop, newDelay, newAnimationLink]) => {
|
|
75352
|
+
loopC.value = newLoop;
|
|
75353
|
+
delayC.value = newDelay;
|
|
75354
|
+
animationLinkC.value = newAnimationLink;
|
|
75355
|
+
lottieKey.value += 1; // 更新 key 值,强制重新渲染组件
|
|
75376
75356
|
}, { deep: true });
|
|
75377
75357
|
const play = () => {
|
|
75378
75358
|
if (lottieAnimation.value) {
|
|
@@ -75382,12 +75362,12 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75382
75362
|
};
|
|
75383
75363
|
return {
|
|
75384
75364
|
styleProps,
|
|
75385
|
-
// AstronautJSON,
|
|
75386
75365
|
handleClick,
|
|
75387
75366
|
lottieAnimation,
|
|
75388
75367
|
loopC,
|
|
75389
75368
|
delayC,
|
|
75390
75369
|
animationLinkC,
|
|
75370
|
+
lottieKey,
|
|
75391
75371
|
play
|
|
75392
75372
|
};
|
|
75393
75373
|
}
|
|
@@ -75402,6 +75382,7 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75402
75382
|
animationLink: _ctx.animationLinkC,
|
|
75403
75383
|
loop: _ctx.loopC,
|
|
75404
75384
|
delay: _ctx.delayC,
|
|
75385
|
+
key: _ctx.lottieKey,
|
|
75405
75386
|
ref: "lottieAnimation",
|
|
75406
75387
|
class: "uni-lotties-component inner-component"
|
|
75407
75388
|
}, null, 8 /* PROPS */, ["onClick", "style", "animationLink", "loop", "delay"]))
|