unika-components 1.0.342 → 1.0.343
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.
|
@@ -97,20 +97,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
lineHeight: number;
|
|
98
98
|
letterSpacing: string;
|
|
99
99
|
fontWeight: string;
|
|
100
|
+
fontStyle: string;
|
|
100
101
|
textDecoration: string;
|
|
101
102
|
textAlign: string;
|
|
102
103
|
color: string;
|
|
103
104
|
opacity: number;
|
|
104
105
|
padding: string;
|
|
105
106
|
textIndent: string;
|
|
107
|
+
display: string;
|
|
106
108
|
}>;
|
|
107
109
|
textEditorStyle: import("vue").ComputedRef<{
|
|
110
|
+
writingMode: string;
|
|
108
111
|
display: string;
|
|
109
112
|
fontFamily: string;
|
|
110
113
|
fontSize: string;
|
|
111
114
|
lineHeight: number;
|
|
112
115
|
letterSpacing: string;
|
|
113
116
|
fontWeight: string;
|
|
117
|
+
fontStyle: string;
|
|
114
118
|
textDecoration: string;
|
|
115
119
|
textAlign: string;
|
|
116
120
|
color: string;
|
|
@@ -1,25 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
.uni-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
|
|
2
|
+
.uni-video-component {
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
.play-pause-button {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 50%;
|
|
9
|
+
left: 50%;
|
|
10
|
+
transform: translate(-50%, -50%);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
font-size: 2rem;
|
|
13
|
+
color: #fff;
|
|
14
|
+
background: rgba(0, 0, 0, 0.6);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
transition: background 0.3s;
|
|
18
|
+
}
|
|
19
|
+
.play-pause-button:hover {
|
|
20
|
+
background: rgba(0, 0, 0, 0.8);
|
|
21
|
+
}
|
|
8
22
|
|
|
9
23
|
.ele-text {
|
|
10
24
|
position: relative;
|
|
11
25
|
}
|
|
12
26
|
|
|
13
|
-
.ani-wrap {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
align-items: center;
|
|
27
|
+
.ele-text .ani-wrap {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
.text-common {
|
|
33
|
+
padding: 5px;
|
|
34
|
+
text-orientation: upright;
|
|
20
35
|
white-space: pre-wrap;
|
|
21
|
-
word-break: break-all;
|
|
22
|
-
transform-origin: center;
|
|
23
36
|
}
|
|
24
37
|
|
|
25
38
|
/* 文本动画类 */
|
|
@@ -75,6 +88,13 @@
|
|
|
75
88
|
}
|
|
76
89
|
}
|
|
77
90
|
|
|
91
|
+
.uni-image-component {
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
}
|
|
94
|
+
.uni-image-mask-wrapper {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
|
|
78
98
|
.work-container {
|
|
79
99
|
position: relative;
|
|
80
100
|
overflow: hidden;
|
|
@@ -272,49 +292,6 @@
|
|
|
272
292
|
will-change: transform;
|
|
273
293
|
}
|
|
274
294
|
|
|
275
|
-
.like-button {
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-direction: column;
|
|
278
|
-
align-items: center;
|
|
279
|
-
cursor: pointer;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.icon-heart {
|
|
283
|
-
font-size: 24px;
|
|
284
|
-
color: #e74c3c;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.liked {
|
|
288
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.like-count {
|
|
292
|
-
margin-top: 4px;
|
|
293
|
-
font-size: 16px;
|
|
294
|
-
color: #333;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.uni-video-component {
|
|
298
|
-
position: relative;
|
|
299
|
-
text-align: center;
|
|
300
|
-
}
|
|
301
|
-
.play-pause-button {
|
|
302
|
-
position: absolute;
|
|
303
|
-
top: 50%;
|
|
304
|
-
left: 50%;
|
|
305
|
-
transform: translate(-50%, -50%);
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
font-size: 2rem;
|
|
308
|
-
color: #fff;
|
|
309
|
-
background: rgba(0, 0, 0, 0.6);
|
|
310
|
-
border-radius: 50%;
|
|
311
|
-
padding: 10px;
|
|
312
|
-
transition: background 0.3s;
|
|
313
|
-
}
|
|
314
|
-
.play-pause-button:hover {
|
|
315
|
-
background: rgba(0, 0, 0, 0.8);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
295
|
|
|
319
296
|
.uni-calendar-component {
|
|
320
297
|
|
|
@@ -362,23 +339,45 @@
|
|
|
362
339
|
vertical-align: top;
|
|
363
340
|
}
|
|
364
341
|
|
|
365
|
-
.uni-
|
|
366
|
-
|
|
367
|
-
|
|
342
|
+
.uni-build-up-component {
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.like-button {
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
align-items: center;
|
|
349
|
+
cursor: pointer;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.icon-heart {
|
|
353
|
+
font-size: 24px;
|
|
354
|
+
color: #e74c3c;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.liked {
|
|
358
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.like-count {
|
|
362
|
+
margin-top: 4px;
|
|
363
|
+
font-size: 16px;
|
|
364
|
+
color: #333;
|
|
368
365
|
}
|
|
369
366
|
|
|
370
367
|
.effect {
|
|
371
368
|
width: 100%;
|
|
372
369
|
height: 100%;
|
|
373
370
|
}
|
|
374
|
-
|
|
375
|
-
.uni-build-up-component {
|
|
376
|
-
}
|
|
377
371
|
|
|
378
372
|
.uni-svg-component {
|
|
379
373
|
display: inline-block;
|
|
380
374
|
}
|
|
381
375
|
|
|
376
|
+
.uni-lotties-component {
|
|
377
|
+
width: 100%;
|
|
378
|
+
height: 100%;
|
|
379
|
+
}
|
|
380
|
+
|
|
382
381
|
|
|
383
382
|
.no-animation__card {
|
|
384
383
|
font-weight: 500;
|
|
@@ -45,20 +45,23 @@ var script$k = defineComponent({
|
|
|
45
45
|
}));
|
|
46
46
|
// 计算文本样式
|
|
47
47
|
const textCommonStyle = computed(() => ({
|
|
48
|
-
fontFamily: css.fontFamily || '
|
|
48
|
+
fontFamily: css.fontFamily || 'gorilla',
|
|
49
49
|
fontSize: `${css.fontSize || 16}px`,
|
|
50
50
|
lineHeight: css.lineHeight || 1,
|
|
51
51
|
letterSpacing: `${css.letterSpacing || 0}px`,
|
|
52
52
|
fontWeight: css.fontWeight || 'normal',
|
|
53
|
+
fontStyle: css.fontStyle || 'normal',
|
|
53
54
|
textDecoration: css.textDecoration || 'none',
|
|
54
55
|
textAlign: css.textAlign || 'center',
|
|
55
56
|
color: css.color || '#000',
|
|
56
|
-
opacity:
|
|
57
|
+
opacity: 1,
|
|
57
58
|
padding: `${css.padding || 0}px`,
|
|
58
59
|
textIndent: `${css.textIndent || 0}px`,
|
|
60
|
+
display: 'none'
|
|
59
61
|
}));
|
|
60
62
|
const textEditorStyle = computed(() => ({
|
|
61
63
|
...textCommonStyle.value,
|
|
64
|
+
writingMode: css.writingMode,
|
|
62
65
|
display: 'block', // 确保文本编辑器可见
|
|
63
66
|
}));
|
|
64
67
|
return {
|
|
@@ -99,7 +102,7 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
102
|
borderStyle: _ctx.css.borderStyle,
|
|
100
103
|
borderWidth: `${_ctx.css.borderWidth || 0}px`,
|
|
101
104
|
boxShadow: _ctx.boxShadowStyle,
|
|
102
|
-
opacity: _ctx.
|
|
105
|
+
opacity: _ctx.css.opacity || 1
|
|
103
106
|
})
|
|
104
107
|
}, [
|
|
105
108
|
createElementVNode("div", {
|
|
@@ -52,20 +52,23 @@
|
|
|
52
52
|
}));
|
|
53
53
|
// 计算文本样式
|
|
54
54
|
const textCommonStyle = vue.computed(() => ({
|
|
55
|
-
fontFamily: css.fontFamily || '
|
|
55
|
+
fontFamily: css.fontFamily || 'gorilla',
|
|
56
56
|
fontSize: `${css.fontSize || 16}px`,
|
|
57
57
|
lineHeight: css.lineHeight || 1,
|
|
58
58
|
letterSpacing: `${css.letterSpacing || 0}px`,
|
|
59
59
|
fontWeight: css.fontWeight || 'normal',
|
|
60
|
+
fontStyle: css.fontStyle || 'normal',
|
|
60
61
|
textDecoration: css.textDecoration || 'none',
|
|
61
62
|
textAlign: css.textAlign || 'center',
|
|
62
63
|
color: css.color || '#000',
|
|
63
|
-
opacity:
|
|
64
|
+
opacity: 1,
|
|
64
65
|
padding: `${css.padding || 0}px`,
|
|
65
66
|
textIndent: `${css.textIndent || 0}px`,
|
|
67
|
+
display: 'none'
|
|
66
68
|
}));
|
|
67
69
|
const textEditorStyle = vue.computed(() => ({
|
|
68
70
|
...textCommonStyle.value,
|
|
71
|
+
writingMode: css.writingMode,
|
|
69
72
|
display: 'block', // 确保文本编辑器可见
|
|
70
73
|
}));
|
|
71
74
|
return {
|
|
@@ -106,7 +109,7 @@
|
|
|
106
109
|
borderStyle: _ctx.css.borderStyle,
|
|
107
110
|
borderWidth: `${_ctx.css.borderWidth || 0}px`,
|
|
108
111
|
boxShadow: _ctx.boxShadowStyle,
|
|
109
|
-
opacity: _ctx.
|
|
112
|
+
opacity: _ctx.css.opacity || 1
|
|
110
113
|
})
|
|
111
114
|
}, [
|
|
112
115
|
vue.createElementVNode("div", {
|