unika-components 1.0.74 → 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.
- package/dist/src/components/UniButton/UniButton.vue.d.ts +21 -3
- package/dist/src/components/UniCall/UniCall.vue.d.ts +9 -0
- package/dist/src/defaultProps.d.ts +2 -2
- package/dist/unika-components.css +146 -146
- package/dist/unika-components.esm.js +20 -6
- package/dist/unika-components.umd.js +20 -6
- package/package.json +1 -1
|
@@ -11,10 +11,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
buttonText: {
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
+
transform: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
isEditing: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}, {
|
|
19
27
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
20
28
|
handleClick: () => void;
|
|
@@ -32,14 +40,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
40
|
type: StringConstructor;
|
|
33
41
|
default: string;
|
|
34
42
|
};
|
|
35
|
-
|
|
43
|
+
buttonText: {
|
|
36
44
|
type: StringConstructor;
|
|
37
45
|
default: string;
|
|
38
46
|
};
|
|
47
|
+
transform: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
isEditing: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
39
55
|
}>>, {
|
|
40
56
|
buttonUrl: string;
|
|
41
57
|
fontColor: string;
|
|
42
58
|
backgroundColor: string;
|
|
43
|
-
|
|
59
|
+
buttonText: string;
|
|
60
|
+
transform: string;
|
|
61
|
+
isEditing: boolean;
|
|
44
62
|
}, {}>;
|
|
45
63
|
export default _default;
|
|
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
+
transform: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
18
22
|
isEditing: {
|
|
19
23
|
type: BooleanConstructor;
|
|
20
24
|
default: boolean;
|
|
@@ -40,11 +44,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
44
|
type: StringConstructor;
|
|
41
45
|
default: string;
|
|
42
46
|
};
|
|
47
|
+
transform: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
43
51
|
isEditing: {
|
|
44
52
|
type: BooleanConstructor;
|
|
45
53
|
default: boolean;
|
|
46
54
|
};
|
|
47
55
|
}>>, {
|
|
56
|
+
transform: string;
|
|
48
57
|
phoneNumber: string;
|
|
49
58
|
fontColor: string;
|
|
50
59
|
backgroundColor: string;
|
|
@@ -290,7 +290,7 @@ export declare const buttonDefaultProps: {
|
|
|
290
290
|
fontColor: string;
|
|
291
291
|
backgroundColor: string;
|
|
292
292
|
buttonUrl: string;
|
|
293
|
-
|
|
293
|
+
buttonText: string;
|
|
294
294
|
};
|
|
295
295
|
export declare const likeDefaultProps: {
|
|
296
296
|
actionType: string;
|
|
@@ -644,7 +644,7 @@ export declare const componentsDefaultProps: {
|
|
|
644
644
|
fontColor: string;
|
|
645
645
|
backgroundColor: string;
|
|
646
646
|
buttonUrl: string;
|
|
647
|
-
|
|
647
|
+
buttonText: string;
|
|
648
648
|
};
|
|
649
649
|
};
|
|
650
650
|
};
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
h2.uni-text-component, p.uni-text-component {
|
|
3
|
+
margin-bottom: 0;
|
|
4
|
+
}
|
|
5
|
+
button.uni-text-component {
|
|
6
|
+
padding: 5px 10px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
.uni-text-component {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
white-space: pre-wrap;
|
|
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
|
+
}
|
|
1
25
|
|
|
2
26
|
.uni-video-component {
|
|
3
27
|
position: relative;
|
|
@@ -19,6 +43,101 @@
|
|
|
19
43
|
.play-pause-button:hover {
|
|
20
44
|
background: rgba(0, 0, 0, 0.8);
|
|
21
45
|
}
|
|
46
|
+
|
|
47
|
+
#audio {
|
|
48
|
+
position: absolute;
|
|
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
|
+
}
|
|
140
|
+
}
|
|
22
141
|
|
|
23
142
|
.slide-guide {
|
|
24
143
|
position: absolute;
|
|
@@ -93,29 +212,27 @@ body, html {
|
|
|
93
212
|
}
|
|
94
213
|
}
|
|
95
214
|
|
|
96
|
-
.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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;
|
|
102
235
|
}
|
|
103
|
-
|
|
104
|
-
.uni-image-component {
|
|
105
|
-
max-width: 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
h2.uni-text-component, p.uni-text-component {
|
|
109
|
-
margin-bottom: 0;
|
|
110
|
-
}
|
|
111
|
-
button.uni-text-component {
|
|
112
|
-
padding: 5px 10px;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
}
|
|
115
|
-
.uni-text-component {
|
|
116
|
-
box-sizing: border-box;
|
|
117
|
-
white-space: pre-wrap;
|
|
118
|
-
}
|
|
119
236
|
|
|
120
237
|
.uni-background-component {
|
|
121
238
|
width: 100%;
|
|
@@ -153,47 +270,6 @@ button.uni-text-component {
|
|
|
153
270
|
opacity: 0.1;
|
|
154
271
|
}
|
|
155
272
|
|
|
156
|
-
.effect {
|
|
157
|
-
width: 100%;
|
|
158
|
-
height: 100%;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.swiper-warp {
|
|
162
|
-
width: 100%;
|
|
163
|
-
height: 100%;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.swiper-slide-component {
|
|
167
|
-
text-align: center;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.swiper-slide img {
|
|
171
|
-
max-width: 100%;
|
|
172
|
-
max-height: 100%;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.like-button {
|
|
176
|
-
display: flex;
|
|
177
|
-
flex-direction: column;
|
|
178
|
-
align-items: center;
|
|
179
|
-
cursor: pointer;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.icon-heart {
|
|
183
|
-
font-size: 24px;
|
|
184
|
-
color: #e74c3c;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.liked {
|
|
188
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.like-count {
|
|
192
|
-
margin-top: 4px;
|
|
193
|
-
font-size: 16px;
|
|
194
|
-
color: #333;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
273
|
.ant-input-number {
|
|
198
274
|
box-sizing: border-box;
|
|
199
275
|
margin: 0;
|
|
@@ -229,99 +305,23 @@ button.uni-text-component {
|
|
|
229
305
|
vertical-align: top;
|
|
230
306
|
}
|
|
231
307
|
|
|
232
|
-
|
|
233
|
-
position: absolute;
|
|
234
|
-
right: 10px;
|
|
235
|
-
top: 10px;
|
|
236
|
-
z-index: 103;
|
|
237
|
-
width: 30px;
|
|
238
|
-
height: 30px;
|
|
239
|
-
display: -webkit-box;
|
|
240
|
-
display: -ms-flexbox;
|
|
241
|
-
display: flex;
|
|
242
|
-
-webkit-box-align: center;
|
|
243
|
-
-ms-flex-align: center;
|
|
244
|
-
align-items: center;
|
|
245
|
-
}
|
|
246
|
-
#audio .audio {
|
|
247
|
-
width: 100%;
|
|
248
|
-
height: 100%;
|
|
249
|
-
display: -webkit-box;
|
|
250
|
-
display: -ms-flexbox;
|
|
251
|
-
display: flex;
|
|
252
|
-
-webkit-box-align: center;
|
|
253
|
-
-ms-flex-align: center;
|
|
254
|
-
align-items: center;
|
|
255
|
-
-webkit-box-pack: center;
|
|
256
|
-
-ms-flex-pack: center;
|
|
257
|
-
justify-content: center;
|
|
258
|
-
color: #fff;
|
|
259
|
-
background: #666;
|
|
260
|
-
border-radius: 50%;
|
|
261
|
-
overflow: hidden;
|
|
262
|
-
will-change: transform;
|
|
263
|
-
}
|
|
264
|
-
#audio .audio .music-icon {
|
|
265
|
-
display: block;
|
|
266
|
-
width: 100%;
|
|
267
|
-
height: 100%;
|
|
268
|
-
}
|
|
269
|
-
#audio .icon-cancel {
|
|
270
|
-
position: absolute;
|
|
308
|
+
.effect {
|
|
271
309
|
width: 100%;
|
|
272
310
|
height: 100%;
|
|
273
|
-
border-radius: 50%;
|
|
274
|
-
overflow: hidden;
|
|
275
|
-
padding: 14px 0;
|
|
276
|
-
}
|
|
277
|
-
#audio .icon-cancel .icon-h {
|
|
278
|
-
-webkit-transform: rotate(45deg);
|
|
279
|
-
transform: rotate(45deg);
|
|
280
|
-
width: 100%;
|
|
281
|
-
height: 2px;
|
|
282
|
-
background: #fff;
|
|
283
|
-
}
|
|
284
|
-
#audio .mrotate {
|
|
285
|
-
-webkit-animation: mrotate 5s linear infinite;
|
|
286
|
-
animation: mrotate 5s linear infinite;
|
|
287
|
-
}
|
|
288
|
-
.video-play-audio {
|
|
289
|
-
position: absolute;
|
|
290
|
-
left: -9999px;
|
|
291
|
-
top: -9999px;
|
|
292
|
-
width: 0;
|
|
293
|
-
height: 0;
|
|
294
|
-
z-index: -1;
|
|
295
|
-
opacity: 1;
|
|
296
|
-
overflow: hidden;
|
|
297
311
|
}
|
|
298
312
|
|
|
299
|
-
.
|
|
300
|
-
position: relative;
|
|
301
|
-
display: inline-block;
|
|
313
|
+
.swiper-warp {
|
|
302
314
|
width: 100%;
|
|
303
315
|
height: 100%;
|
|
304
316
|
}
|
|
305
317
|
|
|
306
|
-
.
|
|
318
|
+
.swiper-slide-component {
|
|
319
|
+
text-align: center;
|
|
307
320
|
}
|
|
308
321
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
transform: rotate(0deg);
|
|
313
|
-
}
|
|
314
|
-
to {
|
|
315
|
-
transform: rotate(360deg);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
@-webkit-keyframes mrotate {
|
|
319
|
-
from {
|
|
320
|
-
-webkit-transform: rotate(0deg);
|
|
321
|
-
}
|
|
322
|
-
to {
|
|
323
|
-
-webkit-transform: rotate(360deg);
|
|
324
|
-
}
|
|
322
|
+
.swiper-slide img {
|
|
323
|
+
max-width: 100%;
|
|
324
|
+
max-height: 100%;
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Swiper 6.8.4
|
|
@@ -5122,7 +5122,7 @@ const buttonDefaultProps = {
|
|
|
5122
5122
|
fontColor: '#fff',
|
|
5123
5123
|
backgroundColor: 'rgb(33, 147, 255)',
|
|
5124
5124
|
buttonUrl: 'https://unika.cc',
|
|
5125
|
-
|
|
5125
|
+
buttonText: 'Link'
|
|
5126
5126
|
};
|
|
5127
5127
|
const likeDefaultProps = {
|
|
5128
5128
|
...commonDefaultProps
|
|
@@ -26220,6 +26220,10 @@ var script$6 = defineComponent({
|
|
|
26220
26220
|
type: String,
|
|
26221
26221
|
default: '一键拨号'
|
|
26222
26222
|
},
|
|
26223
|
+
transform: {
|
|
26224
|
+
type: String,
|
|
26225
|
+
default: 'rotate(0deg)'
|
|
26226
|
+
},
|
|
26223
26227
|
isEditing: {
|
|
26224
26228
|
type: Boolean,
|
|
26225
26229
|
default: false
|
|
@@ -26253,7 +26257,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26253
26257
|
|
|
26254
26258
|
return (openBlock(), createElementBlock("button", {
|
|
26255
26259
|
style: normalizeStyle$1({..._ctx.styleProps, color: _ctx.fontColor,
|
|
26256
|
-
position: 'absolute', background: _ctx.backgroundColor}),
|
|
26260
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
|
|
26257
26261
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
|
|
26258
26262
|
class: "call-button"
|
|
26259
26263
|
}, [
|
|
@@ -75639,9 +75643,17 @@ var script = defineComponent({
|
|
|
75639
75643
|
type: String,
|
|
75640
75644
|
default: 'blue'
|
|
75641
75645
|
},
|
|
75642
|
-
|
|
75646
|
+
buttonText: {
|
|
75643
75647
|
type: String,
|
|
75644
75648
|
default: 'Link'
|
|
75649
|
+
},
|
|
75650
|
+
transform: {
|
|
75651
|
+
type: String,
|
|
75652
|
+
default: 'rotate(0deg)'
|
|
75653
|
+
},
|
|
75654
|
+
isEditing: {
|
|
75655
|
+
type: Boolean,
|
|
75656
|
+
default: false
|
|
75645
75657
|
}
|
|
75646
75658
|
},
|
|
75647
75659
|
components: {},
|
|
@@ -75651,7 +75663,9 @@ var script = defineComponent({
|
|
|
75651
75663
|
const styleProps = useStylePick(props);
|
|
75652
75664
|
const handleClick = useComponentClick(props);
|
|
75653
75665
|
const openUrl = () => {
|
|
75654
|
-
|
|
75666
|
+
if (!props.isEditing) {
|
|
75667
|
+
window.location.href = props.buttonUrl;
|
|
75668
|
+
}
|
|
75655
75669
|
};
|
|
75656
75670
|
return {
|
|
75657
75671
|
styleProps,
|
|
@@ -75664,12 +75678,12 @@ var script = defineComponent({
|
|
|
75664
75678
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75665
75679
|
return (openBlock(), createElementBlock("button", {
|
|
75666
75680
|
style: normalizeStyle$1({..._ctx.styleProps, color: _ctx.fontColor,
|
|
75667
|
-
position: 'absolute', background: _ctx.backgroundColor}),
|
|
75681
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform}),
|
|
75668
75682
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openUrl && _ctx.openUrl(...args))),
|
|
75669
75683
|
class: "call-button"
|
|
75670
75684
|
}, [
|
|
75671
75685
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75672
|
-
createTextVNode(toDisplayString(_ctx.
|
|
75686
|
+
createTextVNode(toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|
|
75673
75687
|
])
|
|
75674
75688
|
], 4 /* STYLE */))
|
|
75675
75689
|
}
|
|
@@ -5129,7 +5129,7 @@
|
|
|
5129
5129
|
fontColor: '#fff',
|
|
5130
5130
|
backgroundColor: 'rgb(33, 147, 255)',
|
|
5131
5131
|
buttonUrl: 'https://unika.cc',
|
|
5132
|
-
|
|
5132
|
+
buttonText: 'Link'
|
|
5133
5133
|
};
|
|
5134
5134
|
const likeDefaultProps = {
|
|
5135
5135
|
...commonDefaultProps
|
|
@@ -26227,6 +26227,10 @@
|
|
|
26227
26227
|
type: String,
|
|
26228
26228
|
default: '一键拨号'
|
|
26229
26229
|
},
|
|
26230
|
+
transform: {
|
|
26231
|
+
type: String,
|
|
26232
|
+
default: 'rotate(0deg)'
|
|
26233
|
+
},
|
|
26230
26234
|
isEditing: {
|
|
26231
26235
|
type: Boolean,
|
|
26232
26236
|
default: false
|
|
@@ -26260,7 +26264,7 @@
|
|
|
26260
26264
|
|
|
26261
26265
|
return (vue.openBlock(), vue.createElementBlock("button", {
|
|
26262
26266
|
style: vue.normalizeStyle({..._ctx.styleProps, color: _ctx.fontColor,
|
|
26263
|
-
position: 'absolute', background: _ctx.backgroundColor}),
|
|
26267
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
|
|
26264
26268
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
|
|
26265
26269
|
class: "call-button"
|
|
26266
26270
|
}, [
|
|
@@ -75646,9 +75650,17 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75646
75650
|
type: String,
|
|
75647
75651
|
default: 'blue'
|
|
75648
75652
|
},
|
|
75649
|
-
|
|
75653
|
+
buttonText: {
|
|
75650
75654
|
type: String,
|
|
75651
75655
|
default: 'Link'
|
|
75656
|
+
},
|
|
75657
|
+
transform: {
|
|
75658
|
+
type: String,
|
|
75659
|
+
default: 'rotate(0deg)'
|
|
75660
|
+
},
|
|
75661
|
+
isEditing: {
|
|
75662
|
+
type: Boolean,
|
|
75663
|
+
default: false
|
|
75652
75664
|
}
|
|
75653
75665
|
},
|
|
75654
75666
|
components: {},
|
|
@@ -75658,7 +75670,9 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75658
75670
|
const styleProps = useStylePick(props);
|
|
75659
75671
|
const handleClick = useComponentClick(props);
|
|
75660
75672
|
const openUrl = () => {
|
|
75661
|
-
|
|
75673
|
+
if (!props.isEditing) {
|
|
75674
|
+
window.location.href = props.buttonUrl;
|
|
75675
|
+
}
|
|
75662
75676
|
};
|
|
75663
75677
|
return {
|
|
75664
75678
|
styleProps,
|
|
@@ -75671,12 +75685,12 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75671
75685
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75672
75686
|
return (vue.openBlock(), vue.createElementBlock("button", {
|
|
75673
75687
|
style: vue.normalizeStyle({..._ctx.styleProps, color: _ctx.fontColor,
|
|
75674
|
-
position: 'absolute', background: _ctx.backgroundColor}),
|
|
75688
|
+
position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform}),
|
|
75675
75689
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openUrl && _ctx.openUrl(...args))),
|
|
75676
75690
|
class: "call-button"
|
|
75677
75691
|
}, [
|
|
75678
75692
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75679
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.
|
|
75693
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|
|
75680
75694
|
])
|
|
75681
75695
|
], 4 /* STYLE */))
|
|
75682
75696
|
}
|