unika-components 1.0.23 → 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.
@@ -0,0 +1,45 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ phoneNumber: {
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
+ text: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }, {
19
+ styleProps: import("vue").ComputedRef<Pick<any, string>>;
20
+ handleClick: () => void;
21
+ callNumber: () => void;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ phoneNumber: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ fontColor: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ backgroundColor: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ text: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ }>>, {
40
+ phoneNumber: string;
41
+ fontColor: string;
42
+ backgroundColor: string;
43
+ text: string;
44
+ }, {}>;
45
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import UniCall from './UniCall.vue';
2
+ export default UniCall;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import UniLike from './UniLike.vue';
2
+ export default UniLike;
@@ -294,6 +294,46 @@ export declare const mapDefaultProps: {
294
294
  top: string;
295
295
  right: string;
296
296
  };
297
+ export declare const callDefaultProps: {
298
+ actionType: string;
299
+ url: string;
300
+ height: string;
301
+ width: string;
302
+ paddingLeft: string;
303
+ paddingRight: string;
304
+ paddingTop: string;
305
+ paddingBottom: string;
306
+ borderStyle: string;
307
+ borderColor: string;
308
+ borderWidth: string;
309
+ borderRadius: string;
310
+ boxShadow: string;
311
+ opacity: number;
312
+ position: string;
313
+ left: string;
314
+ top: string;
315
+ right: string;
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
+ };
297
337
  export declare const componentsDefaultProps: {
298
338
  'uni-text': {
299
339
  props: {
@@ -501,6 +541,50 @@ export declare const componentsDefaultProps: {
501
541
  right: string;
502
542
  };
503
543
  };
544
+ 'uni-call': {
545
+ props: {
546
+ actionType: string;
547
+ url: string;
548
+ height: string;
549
+ width: string;
550
+ paddingLeft: string;
551
+ paddingRight: string;
552
+ paddingTop: string;
553
+ paddingBottom: string;
554
+ borderStyle: string;
555
+ borderColor: string;
556
+ borderWidth: string;
557
+ borderRadius: string;
558
+ boxShadow: string;
559
+ opacity: number;
560
+ position: string;
561
+ left: string;
562
+ top: string;
563
+ right: string;
564
+ };
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
+ };
504
588
  };
505
589
  export declare const isEditingProp: {
506
590
  isEditing: {
@@ -10,8 +10,10 @@ import UniVideo from './components/UniVideo';
10
10
  import UniCalendar from './components/UniCalendar';
11
11
  import UniCountdown from './components/UniCountdown';
12
12
  import UniMap from './components/UniMap';
13
+ import UniCall from './components/UniCall';
14
+ import UniLike from './components/UniLike';
13
15
  declare const install: (app: App) => void;
14
- export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, install };
16
+ export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, install };
15
17
  declare const _default: {
16
18
  install: (app: App<any>) => void;
17
19
  };
@@ -14,6 +14,79 @@ button.uni-text-component {
14
14
  .uni-image-component {
15
15
  max-width: 100%;
16
16
  }
17
+
18
+ .slide-guide {
19
+ position: absolute;
20
+ bottom: 90px;
21
+ left: 50%;
22
+ transform: translateX(-50%);
23
+ }
24
+ .slide-guide img {
25
+ animation: flowing 2s ease-in-out infinite;
26
+ width: 33px;
27
+ vertical-align: middle;
28
+ border-style: none;
29
+ }
30
+ body, html {
31
+ position: relative;
32
+ width: 100%;
33
+ height: 100%;
34
+ margin: 0px;
35
+ }
36
+ .swiper-container {
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+ .swiper-slide {
41
+ width: 100%;
42
+ height: 100%;
43
+ overflow: hidden;
44
+ background-size: cover;
45
+ background-position: center;
46
+ background-repeat: no-repeat;
47
+ }
48
+ .up-arrow {
49
+ width: 2rem;
50
+ height: 2rem;
51
+ position: fixed;
52
+ bottom: 2rem;
53
+ left: 50%;
54
+ transform: translate3d(-50%, 0, 0);
55
+ z-index: 999;
56
+ background: none;
57
+ border: none;
58
+ padding: 0;
59
+ animation: upArrowAni 2s infinite linear;
60
+ }
61
+ .up-arrow img {
62
+ width: 2rem;
63
+ height: 2rem;
64
+ text-align: center;
65
+ line-height: 2rem;
66
+ color: #fff;
67
+ font-size: 1.5rem;
68
+ }
69
+ @keyframes upArrowAni {
70
+ 0% {
71
+ opacity: 0;
72
+ transform: translate3d(-50%, 30%, 0);
73
+ }
74
+
75
+ 30% {
76
+ opacity: 1;
77
+ transform: translate3d(-50%, -20%, 0);
78
+ }
79
+
80
+ 60% {
81
+ opacity: 0;
82
+ transform: translate3d(-50%, -35%, 0);
83
+ }
84
+
85
+ 100% {
86
+ opacity: 0;
87
+ transform: translate3d(-50%, -50%, 0);
88
+ }
89
+ }
17
90
 
18
91
  .uni-background-component {
19
92
  width: 100%;
@@ -166,79 +239,6 @@ button.uni-text-component {
166
239
  -webkit-transform: rotate(360deg);
167
240
  }
168
241
  }
169
-
170
- .slide-guide {
171
- position: absolute;
172
- bottom: 90px;
173
- left: 50%;
174
- transform: translateX(-50%);
175
- }
176
- .slide-guide img {
177
- animation: flowing 2s ease-in-out infinite;
178
- width: 33px;
179
- vertical-align: middle;
180
- border-style: none;
181
- }
182
- body, html {
183
- position: relative;
184
- width: 100%;
185
- height: 100%;
186
- margin: 0px;
187
- }
188
- .swiper-container {
189
- width: 100%;
190
- height: 100%;
191
- }
192
- .swiper-slide {
193
- width: 100%;
194
- height: 100%;
195
- overflow: hidden;
196
- background-size: cover;
197
- background-position: center;
198
- background-repeat: no-repeat;
199
- }
200
- .up-arrow {
201
- width: 2rem;
202
- height: 2rem;
203
- position: fixed;
204
- bottom: 2rem;
205
- left: 50%;
206
- transform: translate3d(-50%, 0, 0);
207
- z-index: 999;
208
- background: none;
209
- border: none;
210
- padding: 0;
211
- animation: upArrowAni 2s infinite linear;
212
- }
213
- .up-arrow img {
214
- width: 2rem;
215
- height: 2rem;
216
- text-align: center;
217
- line-height: 2rem;
218
- color: #fff;
219
- font-size: 1.5rem;
220
- }
221
- @keyframes upArrowAni {
222
- 0% {
223
- opacity: 0;
224
- transform: translate3d(-50%, 30%, 0);
225
- }
226
-
227
- 30% {
228
- opacity: 1;
229
- transform: translate3d(-50%, -20%, 0);
230
- }
231
-
232
- 60% {
233
- opacity: 0;
234
- transform: translate3d(-50%, -35%, 0);
235
- }
236
-
237
- 100% {
238
- opacity: 0;
239
- transform: translate3d(-50%, -50%, 0);
240
- }
241
- }
242
242
 
243
243
  .slot-number {
244
244
  position: absolute;
@@ -247,6 +247,28 @@ body, html {
247
247
  font-size: 12px;
248
248
  color: #666
249
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
+ }