unika-components 1.0.127 → 1.0.128
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.
|
@@ -1,63 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
fontColor: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
backgroundColor: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
buttonText: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
transform: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
isEditing: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
2
|
+
[x: string]: any;
|
|
26
3
|
}, {
|
|
27
4
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
28
5
|
handleClick: () => void;
|
|
29
|
-
openUrl: () => void;
|
|
30
6
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
-
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
fontColor: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
|
-
backgroundColor: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
buttonText: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
transform: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
isEditing: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
7
|
+
[x: string]: any;
|
|
55
8
|
}>>, {
|
|
56
|
-
|
|
57
|
-
fontColor: string;
|
|
58
|
-
backgroundColor: string;
|
|
59
|
-
buttonText: string;
|
|
60
|
-
transform: string;
|
|
61
|
-
isEditing: boolean;
|
|
9
|
+
[x: string]: any;
|
|
62
10
|
}, {}>;
|
|
63
11
|
export default _default;
|
|
@@ -291,18 +291,23 @@ export declare const callDefaultProps: {
|
|
|
291
291
|
isEditing: boolean;
|
|
292
292
|
};
|
|
293
293
|
export declare const buttonDefaultProps: {
|
|
294
|
+
position: string;
|
|
294
295
|
left: string;
|
|
295
296
|
top: string;
|
|
296
297
|
width: string;
|
|
297
298
|
height: string;
|
|
298
299
|
transform: string;
|
|
300
|
+
boxShadow: string;
|
|
299
301
|
borderRadius: string;
|
|
300
302
|
borderStyle: string;
|
|
301
303
|
borderWidth: string;
|
|
302
304
|
borderColor: string;
|
|
303
|
-
|
|
305
|
+
color: string;
|
|
306
|
+
lineHeight: number;
|
|
304
307
|
backgroundColor: string;
|
|
305
|
-
|
|
308
|
+
fontSize: string;
|
|
309
|
+
actionType: string;
|
|
310
|
+
url: string;
|
|
306
311
|
buttonText: string;
|
|
307
312
|
};
|
|
308
313
|
export declare const likeDefaultProps: {
|
|
@@ -673,18 +678,23 @@ export declare const componentsDefaultProps: {
|
|
|
673
678
|
};
|
|
674
679
|
'uni-button': {
|
|
675
680
|
props: {
|
|
681
|
+
position: string;
|
|
676
682
|
left: string;
|
|
677
683
|
top: string;
|
|
678
684
|
width: string;
|
|
679
685
|
height: string;
|
|
680
686
|
transform: string;
|
|
687
|
+
boxShadow: string;
|
|
681
688
|
borderRadius: string;
|
|
682
689
|
borderStyle: string;
|
|
683
690
|
borderWidth: string;
|
|
684
691
|
borderColor: string;
|
|
685
|
-
|
|
692
|
+
color: string;
|
|
693
|
+
lineHeight: number;
|
|
686
694
|
backgroundColor: string;
|
|
687
|
-
|
|
695
|
+
fontSize: string;
|
|
696
|
+
actionType: string;
|
|
697
|
+
url: string;
|
|
688
698
|
buttonText: string;
|
|
689
699
|
};
|
|
690
700
|
};
|
|
@@ -3,61 +3,6 @@
|
|
|
3
3
|
max-width: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
h2.uni-text-component, p.uni-text-component {
|
|
7
|
-
margin-bottom: 0;
|
|
8
|
-
}
|
|
9
|
-
button.uni-text-component {
|
|
10
|
-
padding: 5px 10px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
.uni-text-component {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
white-space: pre-wrap;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.like-button {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.icon-heart {
|
|
26
|
-
font-size: 24px;
|
|
27
|
-
color: #e74c3c;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.liked {
|
|
31
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.like-count {
|
|
35
|
-
margin-top: 4px;
|
|
36
|
-
font-size: 16px;
|
|
37
|
-
color: #333;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.uni-video-component {
|
|
41
|
-
position: relative;
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
.play-pause-button {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 50%;
|
|
47
|
-
left: 50%;
|
|
48
|
-
transform: translate(-50%, -50%);
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
font-size: 2rem;
|
|
51
|
-
color: #fff;
|
|
52
|
-
background: rgba(0, 0, 0, 0.6);
|
|
53
|
-
border-radius: 50%;
|
|
54
|
-
padding: 10px;
|
|
55
|
-
transition: background 0.3s;
|
|
56
|
-
}
|
|
57
|
-
.play-pause-button:hover {
|
|
58
|
-
background: rgba(0, 0, 0, 0.8);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
6
|
.slide-guide {
|
|
62
7
|
position: absolute;
|
|
63
8
|
bottom: 90px;
|
|
@@ -130,6 +75,74 @@ body, html {
|
|
|
130
75
|
transform: translate3d(-50%, -50%, 0);
|
|
131
76
|
}
|
|
132
77
|
}
|
|
78
|
+
|
|
79
|
+
h2.uni-text-component, p.uni-text-component {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
button.uni-text-component {
|
|
83
|
+
padding: 5px 10px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.uni-text-component {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
white-space: pre-wrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.effect {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.slot-number {
|
|
97
|
+
position: absolute;
|
|
98
|
+
bottom: 2px;
|
|
99
|
+
left: 7px;
|
|
100
|
+
font-size: 12px;
|
|
101
|
+
color: #666
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.like-button {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
align-items: center;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.icon-heart {
|
|
112
|
+
font-size: 24px;
|
|
113
|
+
color: #e74c3c;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.liked {
|
|
117
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.like-count {
|
|
121
|
+
margin-top: 4px;
|
|
122
|
+
font-size: 16px;
|
|
123
|
+
color: #333;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.uni-video-component {
|
|
127
|
+
position: relative;
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
.play-pause-button {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: 50%;
|
|
133
|
+
left: 50%;
|
|
134
|
+
transform: translate(-50%, -50%);
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
font-size: 2rem;
|
|
137
|
+
color: #fff;
|
|
138
|
+
background: rgba(0, 0, 0, 0.6);
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
padding: 10px;
|
|
141
|
+
transition: background 0.3s;
|
|
142
|
+
}
|
|
143
|
+
.play-pause-button:hover {
|
|
144
|
+
background: rgba(0, 0, 0, 0.8);
|
|
145
|
+
}
|
|
133
146
|
|
|
134
147
|
.ant-input-number {
|
|
135
148
|
box-sizing: border-box;
|
|
@@ -179,19 +192,6 @@ body, html {
|
|
|
179
192
|
max-width: 100%;
|
|
180
193
|
max-height: 100%;
|
|
181
194
|
}
|
|
182
|
-
|
|
183
|
-
.slot-number {
|
|
184
|
-
position: absolute;
|
|
185
|
-
bottom: 2px;
|
|
186
|
-
left: 7px;
|
|
187
|
-
font-size: 12px;
|
|
188
|
-
color: #666
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.effect {
|
|
192
|
-
width: 100%;
|
|
193
|
-
height: 100%;
|
|
194
|
-
}
|
|
195
195
|
/**
|
|
196
196
|
* Swiper 6.8.4
|
|
197
197
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -5118,18 +5118,23 @@ const callDefaultProps = {
|
|
|
5118
5118
|
isEditing: false
|
|
5119
5119
|
};
|
|
5120
5120
|
const buttonDefaultProps = {
|
|
5121
|
-
|
|
5121
|
+
position: 'absolute',
|
|
5122
|
+
left: '70.5px',
|
|
5122
5123
|
top: '347px',
|
|
5123
|
-
width: '
|
|
5124
|
+
width: '235px',
|
|
5124
5125
|
height: '40px',
|
|
5125
5126
|
transform: 'rotate(0deg)',
|
|
5126
|
-
|
|
5127
|
+
boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
|
|
5128
|
+
borderRadius: '4px',
|
|
5127
5129
|
borderStyle: 'solid',
|
|
5128
|
-
borderWidth: '
|
|
5129
|
-
borderColor: '
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5130
|
+
borderWidth: '0px',
|
|
5131
|
+
borderColor: 'rgb(153, 153, 153)',
|
|
5132
|
+
color: 'rgb(255, 255, 255)',
|
|
5133
|
+
lineHeight: 1,
|
|
5134
|
+
backgroundColor: 'rgb(38, 135, 241)',
|
|
5135
|
+
fontSize: '16px',
|
|
5136
|
+
actionType: "to",
|
|
5137
|
+
url: "https://unika.cc",
|
|
5133
5138
|
buttonText: 'Link',
|
|
5134
5139
|
};
|
|
5135
5140
|
const likeDefaultProps = {
|
|
@@ -5279,9 +5284,9 @@ const transformToComponentProps = (props, extraProps) => {
|
|
|
5279
5284
|
}
|
|
5280
5285
|
};
|
|
5281
5286
|
|
|
5282
|
-
const defaultStyles$
|
|
5287
|
+
const defaultStyles$2 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
|
|
5283
5288
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
5284
|
-
const useStylePick = (props, pickStyles = defaultStyles$
|
|
5289
|
+
const useStylePick = (props, pickStyles = defaultStyles$2) => {
|
|
5285
5290
|
return computed(() => pick$1(props, pickStyles));
|
|
5286
5291
|
};
|
|
5287
5292
|
|
|
@@ -13127,7 +13132,7 @@ script$f.install = (app) => {
|
|
|
13127
13132
|
};
|
|
13128
13133
|
|
|
13129
13134
|
const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13130
|
-
const defaultStyles = Object.keys(backgroundDefaultProps);
|
|
13135
|
+
const defaultStyles$1 = Object.keys(backgroundDefaultProps);
|
|
13131
13136
|
// array that contains style props
|
|
13132
13137
|
var script$e = defineComponent({
|
|
13133
13138
|
name: 'uni-background',
|
|
@@ -13135,7 +13140,7 @@ var script$e = defineComponent({
|
|
|
13135
13140
|
...defaultProps$8
|
|
13136
13141
|
},
|
|
13137
13142
|
setup(props) {
|
|
13138
|
-
const styleProps = useStylePick(props, defaultStyles);
|
|
13143
|
+
const styleProps = useStylePick(props, defaultStyles$1);
|
|
13139
13144
|
const handleClick = useComponentClick(props);
|
|
13140
13145
|
return {
|
|
13141
13146
|
styleProps,
|
|
@@ -75538,62 +75543,59 @@ script$2.install = (app) => {
|
|
|
75538
75543
|
};
|
|
75539
75544
|
|
|
75540
75545
|
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
|
|
75546
|
+
const defaultStyles = Object.keys(buttonDefaultProps);
|
|
75541
75547
|
// array that contains style props
|
|
75542
75548
|
var script$1 = defineComponent({
|
|
75543
75549
|
name: 'uni-button',
|
|
75544
75550
|
props: {
|
|
75545
75551
|
...defaultProps,
|
|
75546
|
-
buttonUrl: {
|
|
75547
|
-
|
|
75548
|
-
|
|
75549
|
-
},
|
|
75550
|
-
fontColor: {
|
|
75551
|
-
|
|
75552
|
-
|
|
75553
|
-
},
|
|
75554
|
-
backgroundColor: {
|
|
75555
|
-
|
|
75556
|
-
|
|
75557
|
-
},
|
|
75558
|
-
buttonText: {
|
|
75559
|
-
|
|
75560
|
-
|
|
75561
|
-
},
|
|
75562
|
-
transform: {
|
|
75563
|
-
|
|
75564
|
-
|
|
75565
|
-
},
|
|
75566
|
-
isEditing: {
|
|
75567
|
-
|
|
75568
|
-
|
|
75569
|
-
}
|
|
75552
|
+
// buttonUrl: {
|
|
75553
|
+
// type: String,
|
|
75554
|
+
// default: 'https://unika.cc'
|
|
75555
|
+
// },
|
|
75556
|
+
// fontColor: {
|
|
75557
|
+
// type: String,
|
|
75558
|
+
// default: 'white'
|
|
75559
|
+
// },
|
|
75560
|
+
// backgroundColor: {
|
|
75561
|
+
// type: String,
|
|
75562
|
+
// default: 'blue'
|
|
75563
|
+
// },
|
|
75564
|
+
// buttonText: {
|
|
75565
|
+
// type: String,
|
|
75566
|
+
// default: 'Link'
|
|
75567
|
+
// },
|
|
75568
|
+
// transform: {
|
|
75569
|
+
// type: String,
|
|
75570
|
+
// default: 'rotate(0deg)'
|
|
75571
|
+
// },
|
|
75572
|
+
// isEditing: {
|
|
75573
|
+
// type: Boolean,
|
|
75574
|
+
// default: false
|
|
75575
|
+
// }
|
|
75570
75576
|
},
|
|
75571
75577
|
components: {},
|
|
75572
75578
|
setup(props) {
|
|
75573
75579
|
// 重用并且简化
|
|
75574
75580
|
// 抽离并且获得 styleProps
|
|
75575
|
-
const styleProps = useStylePick(props);
|
|
75581
|
+
const styleProps = useStylePick(props, defaultStyles);
|
|
75576
75582
|
const handleClick = useComponentClick(props);
|
|
75577
|
-
const openUrl = () => {
|
|
75578
|
-
|
|
75579
|
-
|
|
75580
|
-
window.location.href = props.buttonUrl;
|
|
75581
|
-
}
|
|
75582
|
-
};
|
|
75583
|
+
// const openUrl = () => {
|
|
75584
|
+
// window.location.href = props.buttonUrl
|
|
75585
|
+
// }
|
|
75583
75586
|
return {
|
|
75584
75587
|
styleProps,
|
|
75585
75588
|
handleClick,
|
|
75586
|
-
openUrl
|
|
75589
|
+
// openUrl
|
|
75587
75590
|
};
|
|
75588
75591
|
}
|
|
75589
75592
|
});
|
|
75590
75593
|
|
|
75591
75594
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75592
75595
|
return (openBlock(), createElementBlock("button", {
|
|
75593
|
-
|
|
75594
|
-
|
|
75595
|
-
|
|
75596
|
-
class: "call-button uni-button-component"
|
|
75596
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
75597
|
+
style: normalizeStyle$1(_ctx.styleProps),
|
|
75598
|
+
class: "uni-button-component"
|
|
75597
75599
|
}, [
|
|
75598
75600
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75599
75601
|
createTextVNode(toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|
|
@@ -5125,18 +5125,23 @@
|
|
|
5125
5125
|
isEditing: false
|
|
5126
5126
|
};
|
|
5127
5127
|
const buttonDefaultProps = {
|
|
5128
|
-
|
|
5128
|
+
position: 'absolute',
|
|
5129
|
+
left: '70.5px',
|
|
5129
5130
|
top: '347px',
|
|
5130
|
-
width: '
|
|
5131
|
+
width: '235px',
|
|
5131
5132
|
height: '40px',
|
|
5132
5133
|
transform: 'rotate(0deg)',
|
|
5133
|
-
|
|
5134
|
+
boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
|
|
5135
|
+
borderRadius: '4px',
|
|
5134
5136
|
borderStyle: 'solid',
|
|
5135
|
-
borderWidth: '
|
|
5136
|
-
borderColor: '
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5137
|
+
borderWidth: '0px',
|
|
5138
|
+
borderColor: 'rgb(153, 153, 153)',
|
|
5139
|
+
color: 'rgb(255, 255, 255)',
|
|
5140
|
+
lineHeight: 1,
|
|
5141
|
+
backgroundColor: 'rgb(38, 135, 241)',
|
|
5142
|
+
fontSize: '16px',
|
|
5143
|
+
actionType: "to",
|
|
5144
|
+
url: "https://unika.cc",
|
|
5140
5145
|
buttonText: 'Link',
|
|
5141
5146
|
};
|
|
5142
5147
|
const likeDefaultProps = {
|
|
@@ -5286,9 +5291,9 @@
|
|
|
5286
5291
|
}
|
|
5287
5292
|
};
|
|
5288
5293
|
|
|
5289
|
-
const defaultStyles$
|
|
5294
|
+
const defaultStyles$2 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
|
|
5290
5295
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
5291
|
-
const useStylePick = (props, pickStyles = defaultStyles$
|
|
5296
|
+
const useStylePick = (props, pickStyles = defaultStyles$2) => {
|
|
5292
5297
|
return vue.computed(() => pick$1(props, pickStyles));
|
|
5293
5298
|
};
|
|
5294
5299
|
|
|
@@ -13134,7 +13139,7 @@
|
|
|
13134
13139
|
};
|
|
13135
13140
|
|
|
13136
13141
|
const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13137
|
-
const defaultStyles = Object.keys(backgroundDefaultProps);
|
|
13142
|
+
const defaultStyles$1 = Object.keys(backgroundDefaultProps);
|
|
13138
13143
|
// array that contains style props
|
|
13139
13144
|
var script$e = vue.defineComponent({
|
|
13140
13145
|
name: 'uni-background',
|
|
@@ -13142,7 +13147,7 @@
|
|
|
13142
13147
|
...defaultProps$8
|
|
13143
13148
|
},
|
|
13144
13149
|
setup(props) {
|
|
13145
|
-
const styleProps = useStylePick(props, defaultStyles);
|
|
13150
|
+
const styleProps = useStylePick(props, defaultStyles$1);
|
|
13146
13151
|
const handleClick = useComponentClick(props);
|
|
13147
13152
|
return {
|
|
13148
13153
|
styleProps,
|
|
@@ -75545,62 +75550,59 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75545
75550
|
};
|
|
75546
75551
|
|
|
75547
75552
|
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
|
|
75553
|
+
const defaultStyles = Object.keys(buttonDefaultProps);
|
|
75548
75554
|
// array that contains style props
|
|
75549
75555
|
var script$1 = vue.defineComponent({
|
|
75550
75556
|
name: 'uni-button',
|
|
75551
75557
|
props: {
|
|
75552
75558
|
...defaultProps,
|
|
75553
|
-
buttonUrl: {
|
|
75554
|
-
|
|
75555
|
-
|
|
75556
|
-
},
|
|
75557
|
-
fontColor: {
|
|
75558
|
-
|
|
75559
|
-
|
|
75560
|
-
},
|
|
75561
|
-
backgroundColor: {
|
|
75562
|
-
|
|
75563
|
-
|
|
75564
|
-
},
|
|
75565
|
-
buttonText: {
|
|
75566
|
-
|
|
75567
|
-
|
|
75568
|
-
},
|
|
75569
|
-
transform: {
|
|
75570
|
-
|
|
75571
|
-
|
|
75572
|
-
},
|
|
75573
|
-
isEditing: {
|
|
75574
|
-
|
|
75575
|
-
|
|
75576
|
-
}
|
|
75559
|
+
// buttonUrl: {
|
|
75560
|
+
// type: String,
|
|
75561
|
+
// default: 'https://unika.cc'
|
|
75562
|
+
// },
|
|
75563
|
+
// fontColor: {
|
|
75564
|
+
// type: String,
|
|
75565
|
+
// default: 'white'
|
|
75566
|
+
// },
|
|
75567
|
+
// backgroundColor: {
|
|
75568
|
+
// type: String,
|
|
75569
|
+
// default: 'blue'
|
|
75570
|
+
// },
|
|
75571
|
+
// buttonText: {
|
|
75572
|
+
// type: String,
|
|
75573
|
+
// default: 'Link'
|
|
75574
|
+
// },
|
|
75575
|
+
// transform: {
|
|
75576
|
+
// type: String,
|
|
75577
|
+
// default: 'rotate(0deg)'
|
|
75578
|
+
// },
|
|
75579
|
+
// isEditing: {
|
|
75580
|
+
// type: Boolean,
|
|
75581
|
+
// default: false
|
|
75582
|
+
// }
|
|
75577
75583
|
},
|
|
75578
75584
|
components: {},
|
|
75579
75585
|
setup(props) {
|
|
75580
75586
|
// 重用并且简化
|
|
75581
75587
|
// 抽离并且获得 styleProps
|
|
75582
|
-
const styleProps = useStylePick(props);
|
|
75588
|
+
const styleProps = useStylePick(props, defaultStyles);
|
|
75583
75589
|
const handleClick = useComponentClick(props);
|
|
75584
|
-
const openUrl = () => {
|
|
75585
|
-
|
|
75586
|
-
|
|
75587
|
-
window.location.href = props.buttonUrl;
|
|
75588
|
-
}
|
|
75589
|
-
};
|
|
75590
|
+
// const openUrl = () => {
|
|
75591
|
+
// window.location.href = props.buttonUrl
|
|
75592
|
+
// }
|
|
75590
75593
|
return {
|
|
75591
75594
|
styleProps,
|
|
75592
75595
|
handleClick,
|
|
75593
|
-
openUrl
|
|
75596
|
+
// openUrl
|
|
75594
75597
|
};
|
|
75595
75598
|
}
|
|
75596
75599
|
});
|
|
75597
75600
|
|
|
75598
75601
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75599
75602
|
return (vue.openBlock(), vue.createElementBlock("button", {
|
|
75600
|
-
|
|
75601
|
-
|
|
75602
|
-
|
|
75603
|
-
class: "call-button uni-button-component"
|
|
75603
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
75604
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
75605
|
+
class: "uni-button-component"
|
|
75604
75606
|
}, [
|
|
75605
75607
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75606
75608
|
vue.createTextVNode(vue.toDisplayString(_ctx.buttonText), 1 /* TEXT */)
|