unika-components 1.0.75 → 1.0.78
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
|
}
|
|
@@ -15,33 +11,40 @@ button.uni-text-component {
|
|
|
15
11
|
white-space: pre-wrap;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
|
-
.uni-
|
|
19
|
-
|
|
20
|
-
text-align: center;
|
|
14
|
+
.uni-background-component {
|
|
15
|
+
width: 100%;
|
|
21
16
|
}
|
|
22
|
-
.
|
|
17
|
+
.bg-img {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
z-index:1;
|
|
22
|
+
}
|
|
23
|
+
.watermark {
|
|
24
|
+
height: 100%;
|
|
23
25
|
position: absolute;
|
|
24
|
-
top:
|
|
25
|
-
left:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
font-size: 2rem;
|
|
29
|
-
color: #fff;
|
|
30
|
-
background: rgba(0, 0, 0, 0.6);
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
padding: 10px;
|
|
33
|
-
transition: background 0.3s;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
bottom: 0;
|
|
34
30
|
}
|
|
35
|
-
.
|
|
36
|
-
|
|
31
|
+
.watermark-div {
|
|
32
|
+
height: 100%;
|
|
33
|
+
width:100%;
|
|
34
|
+
position:absolute;
|
|
35
|
+
z-index:99999999;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
position:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
body:before{
|
|
38
|
+
content: '';
|
|
39
|
+
position: fixed;
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
z-index: -1;
|
|
45
|
+
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
46
|
+
background-position: center;
|
|
47
|
+
opacity: 0.1;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
.slide-guide {
|
|
@@ -117,42 +120,6 @@ body, html {
|
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
120
|
-
.uni-background-component {
|
|
121
|
-
width: 100%;
|
|
122
|
-
}
|
|
123
|
-
.bg-img {
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
object-fit: cover;
|
|
127
|
-
z-index:1;
|
|
128
|
-
}
|
|
129
|
-
.watermark {
|
|
130
|
-
height: 100%;
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 0;
|
|
133
|
-
left: 0;
|
|
134
|
-
right: 0;
|
|
135
|
-
bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
.watermark-div {
|
|
138
|
-
height: 100%;
|
|
139
|
-
width:100%;
|
|
140
|
-
position:absolute;
|
|
141
|
-
z-index:99999999;
|
|
142
|
-
}
|
|
143
|
-
body:before{
|
|
144
|
-
content: '';
|
|
145
|
-
position: fixed;
|
|
146
|
-
top: 0;
|
|
147
|
-
bottom: 0;
|
|
148
|
-
left: 0;
|
|
149
|
-
right: 0;
|
|
150
|
-
z-index: -1;
|
|
151
|
-
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
152
|
-
background-position: center;
|
|
153
|
-
opacity: 0.1;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
123
|
#audio {
|
|
157
124
|
position: absolute;
|
|
158
125
|
right: 10px;
|
|
@@ -247,6 +214,44 @@ body, html {
|
|
|
247
214
|
-webkit-transform: rotate(360deg);
|
|
248
215
|
}
|
|
249
216
|
}
|
|
217
|
+
|
|
218
|
+
.uni-image-component {
|
|
219
|
+
max-width: 100%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.uni-video-component {
|
|
223
|
+
position: relative;
|
|
224
|
+
text-align: center;
|
|
225
|
+
}
|
|
226
|
+
.play-pause-button {
|
|
227
|
+
position: absolute;
|
|
228
|
+
top: 50%;
|
|
229
|
+
left: 50%;
|
|
230
|
+
transform: translate(-50%, -50%);
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
font-size: 2rem;
|
|
233
|
+
color: #fff;
|
|
234
|
+
background: rgba(0, 0, 0, 0.6);
|
|
235
|
+
border-radius: 50%;
|
|
236
|
+
padding: 10px;
|
|
237
|
+
transition: background 0.3s;
|
|
238
|
+
}
|
|
239
|
+
.play-pause-button:hover {
|
|
240
|
+
background: rgba(0, 0, 0, 0.8);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.slot-number {
|
|
244
|
+
position: absolute;
|
|
245
|
+
bottom: 2px;
|
|
246
|
+
left: 7px;
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
color: #666
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.effect {
|
|
252
|
+
width: 100%;
|
|
253
|
+
height: 100%;
|
|
254
|
+
}
|
|
250
255
|
|
|
251
256
|
.swiper-warp {
|
|
252
257
|
width: 100%;
|
|
@@ -262,6 +267,28 @@ body, html {
|
|
|
262
267
|
max-height: 100%;
|
|
263
268
|
}
|
|
264
269
|
|
|
270
|
+
.like-button {
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
align-items: center;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.icon-heart {
|
|
278
|
+
font-size: 24px;
|
|
279
|
+
color: #e74c3c;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.liked {
|
|
283
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.like-count {
|
|
287
|
+
margin-top: 4px;
|
|
288
|
+
font-size: 16px;
|
|
289
|
+
color: #333;
|
|
290
|
+
}
|
|
291
|
+
|
|
265
292
|
.ant-input-number {
|
|
266
293
|
box-sizing: border-box;
|
|
267
294
|
margin: 0;
|
|
@@ -296,33 +323,6 @@ body, html {
|
|
|
296
323
|
margin-bottom: 0px;
|
|
297
324
|
vertical-align: top;
|
|
298
325
|
}
|
|
299
|
-
|
|
300
|
-
.effect {
|
|
301
|
-
width: 100%;
|
|
302
|
-
height: 100%;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.like-button {
|
|
306
|
-
display: flex;
|
|
307
|
-
flex-direction: column;
|
|
308
|
-
align-items: center;
|
|
309
|
-
cursor: pointer;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.icon-heart {
|
|
313
|
-
font-size: 24px;
|
|
314
|
-
color: #e74c3c;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.liked {
|
|
318
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.like-count {
|
|
322
|
-
margin-top: 4px;
|
|
323
|
-
font-size: 16px;
|
|
324
|
-
color: #333;
|
|
325
|
-
}
|
|
326
326
|
/**
|
|
327
327
|
* Swiper 6.8.4
|
|
328
328
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -13268,7 +13268,7 @@ var script$c = defineComponent({
|
|
|
13268
13268
|
videoSrc: {
|
|
13269
13269
|
type: String,
|
|
13270
13270
|
default: ''
|
|
13271
|
-
}
|
|
13271
|
+
}
|
|
13272
13272
|
},
|
|
13273
13273
|
components: {
|
|
13274
13274
|
// FontAwesomeIcon
|
|
@@ -26259,7 +26259,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26259
26259
|
style: normalizeStyle$1({..._ctx.styleProps, color: _ctx.fontColor,
|
|
26260
26260
|
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
|
|
26261
26261
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
|
|
26262
|
-
class: "call-button"
|
|
26262
|
+
class: "call-button uni-call-component"
|
|
26263
26263
|
}, [
|
|
26264
26264
|
createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
|
|
26265
26265
|
createTextVNode(" "),
|
|
@@ -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,
|
|
@@ -75672,9 +75678,9 @@ var script = defineComponent({
|
|
|
75672
75678
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75673
75679
|
return (openBlock(), createElementBlock("button", {
|
|
75674
75680
|
style: normalizeStyle$1({..._ctx.styleProps, color: _ctx.fontColor,
|
|
75675
|
-
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform}),
|
|
75681
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform} ),
|
|
75676
75682
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openUrl && _ctx.openUrl(...args))),
|
|
75677
|
-
class: "call-button"
|
|
75683
|
+
class: "call-button uni-button-component"
|
|
75678
75684
|
}, [
|
|
75679
75685
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75680
75686
|
createTextVNode(toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|
|
@@ -13275,7 +13275,7 @@
|
|
|
13275
13275
|
videoSrc: {
|
|
13276
13276
|
type: String,
|
|
13277
13277
|
default: ''
|
|
13278
|
-
}
|
|
13278
|
+
}
|
|
13279
13279
|
},
|
|
13280
13280
|
components: {
|
|
13281
13281
|
// FontAwesomeIcon
|
|
@@ -26266,7 +26266,7 @@
|
|
|
26266
26266
|
style: vue.normalizeStyle({..._ctx.styleProps, color: _ctx.fontColor,
|
|
26267
26267
|
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
|
|
26268
26268
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
|
|
26269
|
-
class: "call-button"
|
|
26269
|
+
class: "call-button uni-call-component"
|
|
26270
26270
|
}, [
|
|
26271
26271
|
vue.createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
|
|
26272
26272
|
vue.createTextVNode(" "),
|
|
@@ -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,
|
|
@@ -75679,9 +75685,9 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75679
75685
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75680
75686
|
return (vue.openBlock(), vue.createElementBlock("button", {
|
|
75681
75687
|
style: vue.normalizeStyle({..._ctx.styleProps, color: _ctx.fontColor,
|
|
75682
|
-
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform}),
|
|
75688
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform} ),
|
|
75683
75689
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openUrl && _ctx.openUrl(...args))),
|
|
75684
|
-
class: "call-button"
|
|
75690
|
+
class: "call-button uni-button-component"
|
|
75685
75691
|
}, [
|
|
75686
75692
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75687
75693
|
vue.createTextVNode(vue.toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|