unika-components 1.0.24 → 1.0.25
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/UniLike/UniLike.vue.d.ts +14 -0
- package/dist/src/components/UniLike/index.d.ts +2 -0
- package/dist/src/defaultProps.d.ts +42 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +218 -196
- package/dist/unika-components.esm.js +3859 -147
- package/dist/unika-components.umd.js +3871 -158
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
}, {
|
|
4
|
+
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
5
|
+
handleClick: () => void;
|
|
6
|
+
toggleLike: () => void;
|
|
7
|
+
liked: import("vue").Ref<boolean>;
|
|
8
|
+
likeCount: import("vue").Ref<number>;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>>, {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -314,6 +314,26 @@ export declare const callDefaultProps: {
|
|
|
314
314
|
top: string;
|
|
315
315
|
right: string;
|
|
316
316
|
};
|
|
317
|
+
export declare const likeDefaultProps: {
|
|
318
|
+
actionType: string;
|
|
319
|
+
url: string;
|
|
320
|
+
height: string;
|
|
321
|
+
width: string;
|
|
322
|
+
paddingLeft: string;
|
|
323
|
+
paddingRight: string;
|
|
324
|
+
paddingTop: string;
|
|
325
|
+
paddingBottom: string;
|
|
326
|
+
borderStyle: string;
|
|
327
|
+
borderColor: string;
|
|
328
|
+
borderWidth: string;
|
|
329
|
+
borderRadius: string;
|
|
330
|
+
boxShadow: string;
|
|
331
|
+
opacity: number;
|
|
332
|
+
position: string;
|
|
333
|
+
left: string;
|
|
334
|
+
top: string;
|
|
335
|
+
right: string;
|
|
336
|
+
};
|
|
317
337
|
export declare const componentsDefaultProps: {
|
|
318
338
|
'uni-text': {
|
|
319
339
|
props: {
|
|
@@ -543,6 +563,28 @@ export declare const componentsDefaultProps: {
|
|
|
543
563
|
right: string;
|
|
544
564
|
};
|
|
545
565
|
};
|
|
566
|
+
'uni-like': {
|
|
567
|
+
props: {
|
|
568
|
+
actionType: string;
|
|
569
|
+
url: string;
|
|
570
|
+
height: string;
|
|
571
|
+
width: string;
|
|
572
|
+
paddingLeft: string;
|
|
573
|
+
paddingRight: string;
|
|
574
|
+
paddingTop: string;
|
|
575
|
+
paddingBottom: string;
|
|
576
|
+
borderStyle: string;
|
|
577
|
+
borderColor: string;
|
|
578
|
+
borderWidth: string;
|
|
579
|
+
borderRadius: string;
|
|
580
|
+
boxShadow: string;
|
|
581
|
+
opacity: number;
|
|
582
|
+
position: string;
|
|
583
|
+
left: string;
|
|
584
|
+
top: string;
|
|
585
|
+
right: string;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
546
588
|
};
|
|
547
589
|
export declare const isEditingProp: {
|
|
548
590
|
isEditing: {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,8 +11,9 @@ import UniCalendar from './components/UniCalendar';
|
|
|
11
11
|
import UniCountdown from './components/UniCountdown';
|
|
12
12
|
import UniMap from './components/UniMap';
|
|
13
13
|
import UniCall from './components/UniCall';
|
|
14
|
+
import UniLike from './components/UniLike';
|
|
14
15
|
declare const install: (app: App) => void;
|
|
15
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, install };
|
|
16
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, install };
|
|
16
17
|
declare const _default: {
|
|
17
18
|
install: (app: App<any>) => void;
|
|
18
19
|
};
|
|
@@ -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,109 +10,10 @@ button.uni-text-component {
|
|
|
14
10
|
box-sizing: border-box;
|
|
15
11
|
white-space: pre-wrap;
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
left: 7px;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
color: #666
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#audio {
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: 10px;
|
|
29
|
-
top: 10px;
|
|
30
|
-
z-index: 103;
|
|
31
|
-
width: 30px;
|
|
32
|
-
height: 30px;
|
|
33
|
-
display: -webkit-box;
|
|
34
|
-
display: -ms-flexbox;
|
|
35
|
-
display: flex;
|
|
36
|
-
-webkit-box-align: center;
|
|
37
|
-
-ms-flex-align: center;
|
|
38
|
-
align-items: center;
|
|
39
|
-
}
|
|
40
|
-
#audio .audio {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
display: -webkit-box;
|
|
44
|
-
display: -ms-flexbox;
|
|
45
|
-
display: flex;
|
|
46
|
-
-webkit-box-align: center;
|
|
47
|
-
-ms-flex-align: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
-webkit-box-pack: center;
|
|
50
|
-
-ms-flex-pack: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
color: #fff;
|
|
53
|
-
background: #666;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
will-change: transform;
|
|
57
|
-
}
|
|
58
|
-
#audio .audio .music-icon {
|
|
59
|
-
display: block;
|
|
60
|
-
width: 100%;
|
|
61
|
-
height: 100%;
|
|
62
|
-
}
|
|
63
|
-
#audio .icon-cancel {
|
|
64
|
-
position: absolute;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
border-radius: 50%;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
padding: 14px 0;
|
|
70
|
-
}
|
|
71
|
-
#audio .icon-cancel .icon-h {
|
|
72
|
-
-webkit-transform: rotate(45deg);
|
|
73
|
-
transform: rotate(45deg);
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 2px;
|
|
76
|
-
background: #fff;
|
|
77
|
-
}
|
|
78
|
-
#audio .mrotate {
|
|
79
|
-
-webkit-animation: mrotate 5s linear infinite;
|
|
80
|
-
animation: mrotate 5s linear infinite;
|
|
81
|
-
}
|
|
82
|
-
.video-play-audio {
|
|
83
|
-
position: absolute;
|
|
84
|
-
left: -9999px;
|
|
85
|
-
top: -9999px;
|
|
86
|
-
width: 0;
|
|
87
|
-
height: 0;
|
|
88
|
-
z-index: -1;
|
|
89
|
-
opacity: 1;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.music-img {
|
|
94
|
-
position: relative;
|
|
95
|
-
display: inline-block;
|
|
96
|
-
width: 100%;
|
|
97
|
-
height: 100%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.uni-music-component {
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* 无限旋转 */
|
|
104
|
-
@keyframes mrotate {
|
|
105
|
-
from {
|
|
106
|
-
transform: rotate(0deg);
|
|
107
|
-
}
|
|
108
|
-
to {
|
|
109
|
-
transform: rotate(360deg);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
@-webkit-keyframes mrotate {
|
|
113
|
-
from {
|
|
114
|
-
-webkit-transform: rotate(0deg);
|
|
115
|
-
}
|
|
116
|
-
to {
|
|
117
|
-
-webkit-transform: rotate(360deg);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
13
|
+
|
|
14
|
+
.uni-image-component {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
}
|
|
120
17
|
|
|
121
18
|
.slide-guide {
|
|
122
19
|
position: absolute;
|
|
@@ -247,6 +144,131 @@ body, html {
|
|
|
247
144
|
.play-pause-button:hover {
|
|
248
145
|
background: rgba(0, 0, 0, 0.8);
|
|
249
146
|
}
|
|
147
|
+
|
|
148
|
+
#audio {
|
|
149
|
+
position: absolute;
|
|
150
|
+
right: 10px;
|
|
151
|
+
top: 10px;
|
|
152
|
+
z-index: 103;
|
|
153
|
+
width: 30px;
|
|
154
|
+
height: 30px;
|
|
155
|
+
display: -webkit-box;
|
|
156
|
+
display: -ms-flexbox;
|
|
157
|
+
display: flex;
|
|
158
|
+
-webkit-box-align: center;
|
|
159
|
+
-ms-flex-align: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
#audio .audio {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: 100%;
|
|
165
|
+
display: -webkit-box;
|
|
166
|
+
display: -ms-flexbox;
|
|
167
|
+
display: flex;
|
|
168
|
+
-webkit-box-align: center;
|
|
169
|
+
-ms-flex-align: center;
|
|
170
|
+
align-items: center;
|
|
171
|
+
-webkit-box-pack: center;
|
|
172
|
+
-ms-flex-pack: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
color: #fff;
|
|
175
|
+
background: #666;
|
|
176
|
+
border-radius: 50%;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
will-change: transform;
|
|
179
|
+
}
|
|
180
|
+
#audio .audio .music-icon {
|
|
181
|
+
display: block;
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
}
|
|
185
|
+
#audio .icon-cancel {
|
|
186
|
+
position: absolute;
|
|
187
|
+
width: 100%;
|
|
188
|
+
height: 100%;
|
|
189
|
+
border-radius: 50%;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
padding: 14px 0;
|
|
192
|
+
}
|
|
193
|
+
#audio .icon-cancel .icon-h {
|
|
194
|
+
-webkit-transform: rotate(45deg);
|
|
195
|
+
transform: rotate(45deg);
|
|
196
|
+
width: 100%;
|
|
197
|
+
height: 2px;
|
|
198
|
+
background: #fff;
|
|
199
|
+
}
|
|
200
|
+
#audio .mrotate {
|
|
201
|
+
-webkit-animation: mrotate 5s linear infinite;
|
|
202
|
+
animation: mrotate 5s linear infinite;
|
|
203
|
+
}
|
|
204
|
+
.video-play-audio {
|
|
205
|
+
position: absolute;
|
|
206
|
+
left: -9999px;
|
|
207
|
+
top: -9999px;
|
|
208
|
+
width: 0;
|
|
209
|
+
height: 0;
|
|
210
|
+
z-index: -1;
|
|
211
|
+
opacity: 1;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.music-img {
|
|
216
|
+
position: relative;
|
|
217
|
+
display: inline-block;
|
|
218
|
+
width: 100%;
|
|
219
|
+
height: 100%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.uni-music-component {
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* 无限旋转 */
|
|
226
|
+
@keyframes mrotate {
|
|
227
|
+
from {
|
|
228
|
+
transform: rotate(0deg);
|
|
229
|
+
}
|
|
230
|
+
to {
|
|
231
|
+
transform: rotate(360deg);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
@-webkit-keyframes mrotate {
|
|
235
|
+
from {
|
|
236
|
+
-webkit-transform: rotate(0deg);
|
|
237
|
+
}
|
|
238
|
+
to {
|
|
239
|
+
-webkit-transform: rotate(360deg);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.slot-number {
|
|
244
|
+
position: absolute;
|
|
245
|
+
bottom: 2px;
|
|
246
|
+
left: 7px;
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
color: #666
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.like-button {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
align-items: center;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.icon-heart {
|
|
259
|
+
font-size: 24px;
|
|
260
|
+
color: #e74c3c;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.liked {
|
|
264
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.like-count {
|
|
268
|
+
margin-top: 4px;
|
|
269
|
+
font-size: 16px;
|
|
270
|
+
color: #333;
|
|
271
|
+
}
|
|
250
272
|
/**
|
|
251
273
|
* Swiper 6.8.4
|
|
252
274
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -795,95 +817,6 @@ button.swiper-pagination-bullet {
|
|
|
795
817
|
backface-visibility: hidden;
|
|
796
818
|
}
|
|
797
819
|
|
|
798
|
-
.unika-calendar-title {
|
|
799
|
-
flex: 1;
|
|
800
|
-
margin-right: 50px;
|
|
801
|
-
white-space: nowrap;
|
|
802
|
-
overflow: hidden;
|
|
803
|
-
text-overflow: ellipsis;
|
|
804
|
-
font-size: 16px;
|
|
805
|
-
font-weight: bold;
|
|
806
|
-
color: #333;
|
|
807
|
-
}
|
|
808
|
-
.unika-calendar-header {
|
|
809
|
-
display: flex;
|
|
810
|
-
justify-content: space-between;
|
|
811
|
-
align-items: center;
|
|
812
|
-
padding: 12px 0;
|
|
813
|
-
border-bottom: 1px solid #F3F3F3;
|
|
814
|
-
user-select: none;
|
|
815
|
-
}
|
|
816
|
-
.unika-calendar-header .disabled {
|
|
817
|
-
pointer-events: none;
|
|
818
|
-
color: #f0f0f0;
|
|
819
|
-
}
|
|
820
|
-
.unika-calendar-th {
|
|
821
|
-
display: flex;
|
|
822
|
-
padding: 16px 10px;
|
|
823
|
-
}
|
|
824
|
-
.unika-calendar-th > * {
|
|
825
|
-
flex: 1;
|
|
826
|
-
padding: 0 7px;
|
|
827
|
-
font-size: 12px;
|
|
828
|
-
text-align: center;
|
|
829
|
-
color: #666;
|
|
830
|
-
}
|
|
831
|
-
.unika-calendar-th > *:not(:first-child) {
|
|
832
|
-
margin-left: 10px;
|
|
833
|
-
}
|
|
834
|
-
.unika-calendar-body {
|
|
835
|
-
background-color: #F6FAFF;
|
|
836
|
-
padding: 10px;
|
|
837
|
-
}
|
|
838
|
-
.unika-calendar-editor {
|
|
839
|
-
font-size: 14px;
|
|
840
|
-
font-weight: bold;
|
|
841
|
-
display: flex;
|
|
842
|
-
}
|
|
843
|
-
.unika-calendar-editor span {
|
|
844
|
-
display: inline-block;
|
|
845
|
-
min-width: 80px;
|
|
846
|
-
text-align: center;
|
|
847
|
-
}
|
|
848
|
-
.unika-calendar-day {
|
|
849
|
-
display: inline-block;
|
|
850
|
-
width: 24px;
|
|
851
|
-
height: 24px;
|
|
852
|
-
line-height: 24px;
|
|
853
|
-
text-align: center;
|
|
854
|
-
font-size: 14px;
|
|
855
|
-
border-radius: 50%;
|
|
856
|
-
}
|
|
857
|
-
.unika-calendar-row {
|
|
858
|
-
display: flex;
|
|
859
|
-
}
|
|
860
|
-
.unika-calendar-row:not(:last-child) {
|
|
861
|
-
margin-bottom: 10px;
|
|
862
|
-
}
|
|
863
|
-
.unika-calendar-row > * {
|
|
864
|
-
flex: 1;
|
|
865
|
-
padding: 2px;
|
|
866
|
-
height: 28px;
|
|
867
|
-
box-sizing: border-box;
|
|
868
|
-
position: relative;
|
|
869
|
-
}
|
|
870
|
-
.unika-calendar-row > *.color-grey {
|
|
871
|
-
background-color: #EBF1F9;
|
|
872
|
-
}
|
|
873
|
-
.unika-calendar-row > *.color-purple {
|
|
874
|
-
background-color: #D5C3FF;
|
|
875
|
-
}
|
|
876
|
-
.unika-calendar-row > *.color-green {
|
|
877
|
-
background-color: #AFF0C8;
|
|
878
|
-
}
|
|
879
|
-
.unika-calendar-row > *.color-today .unika-calendar-day {
|
|
880
|
-
background-color: #fff;
|
|
881
|
-
font-weight: bold;
|
|
882
|
-
}
|
|
883
|
-
.unika-calendar-row > *:not(:first-child) {
|
|
884
|
-
margin-left: 10px;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
820
|
.no-animation__card {
|
|
888
821
|
font-weight: 500;
|
|
889
822
|
font-size: 2rem;
|
|
@@ -1018,3 +951,92 @@ button.swiper-pagination-bullet {
|
|
|
1018
951
|
z-index: 5;
|
|
1019
952
|
}
|
|
1020
953
|
}
|
|
954
|
+
|
|
955
|
+
.unika-calendar-title {
|
|
956
|
+
flex: 1;
|
|
957
|
+
margin-right: 50px;
|
|
958
|
+
white-space: nowrap;
|
|
959
|
+
overflow: hidden;
|
|
960
|
+
text-overflow: ellipsis;
|
|
961
|
+
font-size: 16px;
|
|
962
|
+
font-weight: bold;
|
|
963
|
+
color: #333;
|
|
964
|
+
}
|
|
965
|
+
.unika-calendar-header {
|
|
966
|
+
display: flex;
|
|
967
|
+
justify-content: space-between;
|
|
968
|
+
align-items: center;
|
|
969
|
+
padding: 12px 0;
|
|
970
|
+
border-bottom: 1px solid #F3F3F3;
|
|
971
|
+
user-select: none;
|
|
972
|
+
}
|
|
973
|
+
.unika-calendar-header .disabled {
|
|
974
|
+
pointer-events: none;
|
|
975
|
+
color: #f0f0f0;
|
|
976
|
+
}
|
|
977
|
+
.unika-calendar-th {
|
|
978
|
+
display: flex;
|
|
979
|
+
padding: 16px 10px;
|
|
980
|
+
}
|
|
981
|
+
.unika-calendar-th > * {
|
|
982
|
+
flex: 1;
|
|
983
|
+
padding: 0 7px;
|
|
984
|
+
font-size: 12px;
|
|
985
|
+
text-align: center;
|
|
986
|
+
color: #666;
|
|
987
|
+
}
|
|
988
|
+
.unika-calendar-th > *:not(:first-child) {
|
|
989
|
+
margin-left: 10px;
|
|
990
|
+
}
|
|
991
|
+
.unika-calendar-body {
|
|
992
|
+
background-color: #F6FAFF;
|
|
993
|
+
padding: 10px;
|
|
994
|
+
}
|
|
995
|
+
.unika-calendar-editor {
|
|
996
|
+
font-size: 14px;
|
|
997
|
+
font-weight: bold;
|
|
998
|
+
display: flex;
|
|
999
|
+
}
|
|
1000
|
+
.unika-calendar-editor span {
|
|
1001
|
+
display: inline-block;
|
|
1002
|
+
min-width: 80px;
|
|
1003
|
+
text-align: center;
|
|
1004
|
+
}
|
|
1005
|
+
.unika-calendar-day {
|
|
1006
|
+
display: inline-block;
|
|
1007
|
+
width: 24px;
|
|
1008
|
+
height: 24px;
|
|
1009
|
+
line-height: 24px;
|
|
1010
|
+
text-align: center;
|
|
1011
|
+
font-size: 14px;
|
|
1012
|
+
border-radius: 50%;
|
|
1013
|
+
}
|
|
1014
|
+
.unika-calendar-row {
|
|
1015
|
+
display: flex;
|
|
1016
|
+
}
|
|
1017
|
+
.unika-calendar-row:not(:last-child) {
|
|
1018
|
+
margin-bottom: 10px;
|
|
1019
|
+
}
|
|
1020
|
+
.unika-calendar-row > * {
|
|
1021
|
+
flex: 1;
|
|
1022
|
+
padding: 2px;
|
|
1023
|
+
height: 28px;
|
|
1024
|
+
box-sizing: border-box;
|
|
1025
|
+
position: relative;
|
|
1026
|
+
}
|
|
1027
|
+
.unika-calendar-row > *.color-grey {
|
|
1028
|
+
background-color: #EBF1F9;
|
|
1029
|
+
}
|
|
1030
|
+
.unika-calendar-row > *.color-purple {
|
|
1031
|
+
background-color: #D5C3FF;
|
|
1032
|
+
}
|
|
1033
|
+
.unika-calendar-row > *.color-green {
|
|
1034
|
+
background-color: #AFF0C8;
|
|
1035
|
+
}
|
|
1036
|
+
.unika-calendar-row > *.color-today .unika-calendar-day {
|
|
1037
|
+
background-color: #fff;
|
|
1038
|
+
font-weight: bold;
|
|
1039
|
+
}
|
|
1040
|
+
.unika-calendar-row > *:not(:first-child) {
|
|
1041
|
+
margin-left: 10px;
|
|
1042
|
+
}
|