unika-components 1.0.75 → 1.0.76
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.
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
+
isEditing: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
}, {
|
|
23
27
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
24
28
|
handleClick: () => void;
|
|
@@ -44,11 +48,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
48
|
type: StringConstructor;
|
|
45
49
|
default: string;
|
|
46
50
|
};
|
|
51
|
+
isEditing: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
47
55
|
}>>, {
|
|
48
56
|
buttonUrl: string;
|
|
49
57
|
fontColor: string;
|
|
50
58
|
backgroundColor: string;
|
|
51
59
|
buttonText: string;
|
|
52
60
|
transform: string;
|
|
61
|
+
isEditing: boolean;
|
|
53
62
|
}, {}>;
|
|
54
63
|
export default _default;
|
|
@@ -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,6 +10,18 @@ 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
|
+
.slot-number {
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 2px;
|
|
21
|
+
left: 7px;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
color: #666
|
|
24
|
+
}
|
|
17
25
|
|
|
18
26
|
.uni-video-component {
|
|
19
27
|
position: relative;
|
|
@@ -36,12 +44,99 @@ button.uni-text-component {
|
|
|
36
44
|
background: rgba(0, 0, 0, 0.8);
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
#audio {
|
|
40
48
|
position: absolute;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
right: 10px;
|
|
50
|
+
top: 10px;
|
|
51
|
+
z-index: 103;
|
|
52
|
+
width: 30px;
|
|
53
|
+
height: 30px;
|
|
54
|
+
display: -webkit-box;
|
|
55
|
+
display: -ms-flexbox;
|
|
56
|
+
display: flex;
|
|
57
|
+
-webkit-box-align: center;
|
|
58
|
+
-ms-flex-align: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
#audio .audio {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
display: -webkit-box;
|
|
65
|
+
display: -ms-flexbox;
|
|
66
|
+
display: flex;
|
|
67
|
+
-webkit-box-align: center;
|
|
68
|
+
-ms-flex-align: center;
|
|
69
|
+
align-items: center;
|
|
70
|
+
-webkit-box-pack: center;
|
|
71
|
+
-ms-flex-pack: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
color: #fff;
|
|
74
|
+
background: #666;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
will-change: transform;
|
|
78
|
+
}
|
|
79
|
+
#audio .audio .music-icon {
|
|
80
|
+
display: block;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
}
|
|
84
|
+
#audio .icon-cancel {
|
|
85
|
+
position: absolute;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
padding: 14px 0;
|
|
91
|
+
}
|
|
92
|
+
#audio .icon-cancel .icon-h {
|
|
93
|
+
-webkit-transform: rotate(45deg);
|
|
94
|
+
transform: rotate(45deg);
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 2px;
|
|
97
|
+
background: #fff;
|
|
98
|
+
}
|
|
99
|
+
#audio .mrotate {
|
|
100
|
+
-webkit-animation: mrotate 5s linear infinite;
|
|
101
|
+
animation: mrotate 5s linear infinite;
|
|
102
|
+
}
|
|
103
|
+
.video-play-audio {
|
|
104
|
+
position: absolute;
|
|
105
|
+
left: -9999px;
|
|
106
|
+
top: -9999px;
|
|
107
|
+
width: 0;
|
|
108
|
+
height: 0;
|
|
109
|
+
z-index: -1;
|
|
110
|
+
opacity: 1;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.music-img {
|
|
115
|
+
position: relative;
|
|
116
|
+
display: inline-block;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.uni-music-component {
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* 无限旋转 */
|
|
125
|
+
@keyframes mrotate {
|
|
126
|
+
from {
|
|
127
|
+
transform: rotate(0deg);
|
|
128
|
+
}
|
|
129
|
+
to {
|
|
130
|
+
transform: rotate(360deg);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@-webkit-keyframes mrotate {
|
|
134
|
+
from {
|
|
135
|
+
-webkit-transform: rotate(0deg);
|
|
136
|
+
}
|
|
137
|
+
to {
|
|
138
|
+
-webkit-transform: rotate(360deg);
|
|
139
|
+
}
|
|
45
140
|
}
|
|
46
141
|
|
|
47
142
|
.slide-guide {
|
|
@@ -117,6 +212,28 @@ body, html {
|
|
|
117
212
|
}
|
|
118
213
|
}
|
|
119
214
|
|
|
215
|
+
.like-button {
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
align-items: center;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.icon-heart {
|
|
223
|
+
font-size: 24px;
|
|
224
|
+
color: #e74c3c;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.liked {
|
|
228
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.like-count {
|
|
232
|
+
margin-top: 4px;
|
|
233
|
+
font-size: 16px;
|
|
234
|
+
color: #333;
|
|
235
|
+
}
|
|
236
|
+
|
|
120
237
|
.uni-background-component {
|
|
121
238
|
width: 100%;
|
|
122
239
|
}
|
|
@@ -153,115 +270,6 @@ body, html {
|
|
|
153
270
|
opacity: 0.1;
|
|
154
271
|
}
|
|
155
272
|
|
|
156
|
-
#audio {
|
|
157
|
-
position: absolute;
|
|
158
|
-
right: 10px;
|
|
159
|
-
top: 10px;
|
|
160
|
-
z-index: 103;
|
|
161
|
-
width: 30px;
|
|
162
|
-
height: 30px;
|
|
163
|
-
display: -webkit-box;
|
|
164
|
-
display: -ms-flexbox;
|
|
165
|
-
display: flex;
|
|
166
|
-
-webkit-box-align: center;
|
|
167
|
-
-ms-flex-align: center;
|
|
168
|
-
align-items: center;
|
|
169
|
-
}
|
|
170
|
-
#audio .audio {
|
|
171
|
-
width: 100%;
|
|
172
|
-
height: 100%;
|
|
173
|
-
display: -webkit-box;
|
|
174
|
-
display: -ms-flexbox;
|
|
175
|
-
display: flex;
|
|
176
|
-
-webkit-box-align: center;
|
|
177
|
-
-ms-flex-align: center;
|
|
178
|
-
align-items: center;
|
|
179
|
-
-webkit-box-pack: center;
|
|
180
|
-
-ms-flex-pack: center;
|
|
181
|
-
justify-content: center;
|
|
182
|
-
color: #fff;
|
|
183
|
-
background: #666;
|
|
184
|
-
border-radius: 50%;
|
|
185
|
-
overflow: hidden;
|
|
186
|
-
will-change: transform;
|
|
187
|
-
}
|
|
188
|
-
#audio .audio .music-icon {
|
|
189
|
-
display: block;
|
|
190
|
-
width: 100%;
|
|
191
|
-
height: 100%;
|
|
192
|
-
}
|
|
193
|
-
#audio .icon-cancel {
|
|
194
|
-
position: absolute;
|
|
195
|
-
width: 100%;
|
|
196
|
-
height: 100%;
|
|
197
|
-
border-radius: 50%;
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
padding: 14px 0;
|
|
200
|
-
}
|
|
201
|
-
#audio .icon-cancel .icon-h {
|
|
202
|
-
-webkit-transform: rotate(45deg);
|
|
203
|
-
transform: rotate(45deg);
|
|
204
|
-
width: 100%;
|
|
205
|
-
height: 2px;
|
|
206
|
-
background: #fff;
|
|
207
|
-
}
|
|
208
|
-
#audio .mrotate {
|
|
209
|
-
-webkit-animation: mrotate 5s linear infinite;
|
|
210
|
-
animation: mrotate 5s linear infinite;
|
|
211
|
-
}
|
|
212
|
-
.video-play-audio {
|
|
213
|
-
position: absolute;
|
|
214
|
-
left: -9999px;
|
|
215
|
-
top: -9999px;
|
|
216
|
-
width: 0;
|
|
217
|
-
height: 0;
|
|
218
|
-
z-index: -1;
|
|
219
|
-
opacity: 1;
|
|
220
|
-
overflow: hidden;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.music-img {
|
|
224
|
-
position: relative;
|
|
225
|
-
display: inline-block;
|
|
226
|
-
width: 100%;
|
|
227
|
-
height: 100%;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.uni-music-component {
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/* 无限旋转 */
|
|
234
|
-
@keyframes mrotate {
|
|
235
|
-
from {
|
|
236
|
-
transform: rotate(0deg);
|
|
237
|
-
}
|
|
238
|
-
to {
|
|
239
|
-
transform: rotate(360deg);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
@-webkit-keyframes mrotate {
|
|
243
|
-
from {
|
|
244
|
-
-webkit-transform: rotate(0deg);
|
|
245
|
-
}
|
|
246
|
-
to {
|
|
247
|
-
-webkit-transform: rotate(360deg);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.swiper-warp {
|
|
252
|
-
width: 100%;
|
|
253
|
-
height: 100%;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.swiper-slide-component {
|
|
257
|
-
text-align: center;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.swiper-slide img {
|
|
261
|
-
max-width: 100%;
|
|
262
|
-
max-height: 100%;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
273
|
.ant-input-number {
|
|
266
274
|
box-sizing: border-box;
|
|
267
275
|
margin: 0;
|
|
@@ -302,26 +310,18 @@ body, html {
|
|
|
302
310
|
height: 100%;
|
|
303
311
|
}
|
|
304
312
|
|
|
305
|
-
.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
align-items: center;
|
|
309
|
-
cursor: pointer;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.icon-heart {
|
|
313
|
-
font-size: 24px;
|
|
314
|
-
color: #e74c3c;
|
|
313
|
+
.swiper-warp {
|
|
314
|
+
width: 100%;
|
|
315
|
+
height: 100%;
|
|
315
316
|
}
|
|
316
317
|
|
|
317
|
-
.
|
|
318
|
-
|
|
318
|
+
.swiper-slide-component {
|
|
319
|
+
text-align: center;
|
|
319
320
|
}
|
|
320
321
|
|
|
321
|
-
.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
color: #333;
|
|
322
|
+
.swiper-slide img {
|
|
323
|
+
max-width: 100%;
|
|
324
|
+
max-height: 100%;
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Swiper 6.8.4
|
|
@@ -75651,6 +75651,10 @@ var script = defineComponent({
|
|
|
75651
75651
|
type: String,
|
|
75652
75652
|
default: 'rotate(0deg)'
|
|
75653
75653
|
},
|
|
75654
|
+
isEditing: {
|
|
75655
|
+
type: Boolean,
|
|
75656
|
+
default: false
|
|
75657
|
+
}
|
|
75654
75658
|
},
|
|
75655
75659
|
components: {},
|
|
75656
75660
|
setup(props) {
|
|
@@ -75659,7 +75663,9 @@ var script = defineComponent({
|
|
|
75659
75663
|
const styleProps = useStylePick(props);
|
|
75660
75664
|
const handleClick = useComponentClick(props);
|
|
75661
75665
|
const openUrl = () => {
|
|
75662
|
-
|
|
75666
|
+
if (!props.isEditing) {
|
|
75667
|
+
window.location.href = props.buttonUrl;
|
|
75668
|
+
}
|
|
75663
75669
|
};
|
|
75664
75670
|
return {
|
|
75665
75671
|
styleProps,
|
|
@@ -75658,6 +75658,10 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75658
75658
|
type: String,
|
|
75659
75659
|
default: 'rotate(0deg)'
|
|
75660
75660
|
},
|
|
75661
|
+
isEditing: {
|
|
75662
|
+
type: Boolean,
|
|
75663
|
+
default: false
|
|
75664
|
+
}
|
|
75661
75665
|
},
|
|
75662
75666
|
components: {},
|
|
75663
75667
|
setup(props) {
|
|
@@ -75666,7 +75670,9 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75666
75670
|
const styleProps = useStylePick(props);
|
|
75667
75671
|
const handleClick = useComponentClick(props);
|
|
75668
75672
|
const openUrl = () => {
|
|
75669
|
-
|
|
75673
|
+
if (!props.isEditing) {
|
|
75674
|
+
window.location.href = props.buttonUrl;
|
|
75675
|
+
}
|
|
75670
75676
|
};
|
|
75671
75677
|
return {
|
|
75672
75678
|
styleProps,
|