unika-components 1.0.145 → 1.0.146

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,13 @@
1
+ export declare const defaultStyles: string[];
1
2
  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
- callText: {
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
- };
3
+ [x: string]: any;
26
4
  }, {
27
5
  styleProps: import("vue").ComputedRef<Pick<any, string>>;
28
6
  handleClick: () => void;
29
7
  callNumber: () => void;
30
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
- phoneNumber: {
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
- callText: {
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
- };
9
+ [x: string]: any;
55
10
  }>>, {
56
- transform: string;
57
- phoneNumber: string;
58
- fontColor: string;
59
- backgroundColor: string;
60
- callText: string;
61
- isEditing: boolean;
11
+ [x: string]: any;
62
12
  }, {}>;
63
13
  export default _default;
@@ -288,18 +288,20 @@ export declare const callDefaultProps: {
288
288
  top: string;
289
289
  width: string;
290
290
  height: string;
291
+ position: string;
291
292
  size: string;
293
+ boxShadow: string;
292
294
  borderRadius: string;
293
295
  borderStyle: string;
294
296
  borderWidth: string;
295
297
  borderColor: string;
296
298
  fontColor: string;
297
299
  backgroundColor: string;
300
+ color: string;
298
301
  phoneNumber: string;
299
302
  callText: string;
300
303
  fontSize: string;
301
304
  opacity: number;
302
- isEditing: boolean;
303
305
  };
304
306
  export declare const buttonDefaultProps: {
305
307
  position: string;
@@ -605,18 +607,20 @@ export declare const componentsDefaultProps: {
605
607
  top: string;
606
608
  width: string;
607
609
  height: string;
610
+ position: string;
608
611
  size: string;
612
+ boxShadow: string;
609
613
  borderRadius: string;
610
614
  borderStyle: string;
611
615
  borderWidth: string;
612
616
  borderColor: string;
613
617
  fontColor: string;
614
618
  backgroundColor: string;
619
+ color: string;
615
620
  phoneNumber: string;
616
621
  callText: string;
617
622
  fontSize: string;
618
623
  opacity: number;
619
- isEditing: boolean;
620
624
  };
621
625
  };
622
626
  'uni-like': {
@@ -36,6 +36,11 @@ button.uni-text-component {
36
36
  white-space: pre-wrap;
37
37
  }
38
38
 
39
+ .effect {
40
+ width: 100%;
41
+ height: 100%;
42
+ }
43
+
39
44
  .like-button {
40
45
  display: flex;
41
46
  flex-direction: column;
@@ -58,11 +63,20 @@ button.uni-text-component {
58
63
  color: #333;
59
64
  }
60
65
 
61
- .effect {
66
+ .swiper-warp {
62
67
  width: 100%;
63
68
  height: 100%;
64
69
  }
65
70
 
71
+ .swiper-slide-component {
72
+ text-align: center;
73
+ }
74
+
75
+ .swiper-slide img {
76
+ max-width: 100%;
77
+ max-height: 100%;
78
+ }
79
+
66
80
  .ant-input-number {
67
81
  box-sizing: border-box;
68
82
  margin: 0;
@@ -97,6 +111,18 @@ button.uni-text-component {
97
111
  margin-bottom: 0px;
98
112
  vertical-align: top;
99
113
  }
114
+
115
+
116
+ .uni-calendar-component {
117
+
118
+ }
119
+ .slot-number {
120
+ position: absolute;
121
+ bottom: 2px;
122
+ left: 7px;
123
+ font-size: 12px;
124
+ color: #666
125
+ }
100
126
 
101
127
  .slide-guide {
102
128
  position: absolute;
@@ -170,32 +196,6 @@ body, html {
170
196
  transform: translate3d(-50%, -50%, 0);
171
197
  }
172
198
  }
173
-
174
-
175
- .uni-calendar-component {
176
-
177
- }
178
- .slot-number {
179
- position: absolute;
180
- bottom: 2px;
181
- left: 7px;
182
- font-size: 12px;
183
- color: #666
184
- }
185
-
186
- .swiper-warp {
187
- width: 100%;
188
- height: 100%;
189
- }
190
-
191
- .swiper-slide-component {
192
- text-align: center;
193
- }
194
-
195
- .swiper-slide img {
196
- max-width: 100%;
197
- max-height: 100%;
198
- }
199
199
  /**
200
200
  * Swiper 6.8.4
201
201
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -744,193 +744,6 @@ button.swiper-pagination-bullet {
744
744
  backface-visibility: hidden;
745
745
  }
746
746
 
747
-
748
- .no-animation__card {
749
- font-weight: 500;
750
- font-size: var(--countdown-size, 2rem);
751
- line-height: 1.5;
752
- display: block;
753
- color: var(--main-color, #EC685C);
754
- }
755
-
756
- .flip-clock {
757
- text-align: center;
758
- perspective: 600px;
759
- margin: 0 auto;
760
- }
761
-
762
- .flip-clock *,
763
- .flip-clock *:before,
764
- .flip-clock *:after {
765
- box-sizing: border-box;
766
- }
767
-
768
- .flip-clock__piece {
769
- display: inline-block;
770
- margin: 0 0.2vw;
771
- }
772
-
773
- @media (min-width: 1000px) {
774
- .flip-clock__piece {
775
- margin: 0 5px;
776
- }
777
- }
778
-
779
- .flip-clock__slot {
780
- font-size: var(--label-size, 1rem);
781
- line-height: 1.5;
782
- display: block;
783
- color: var(--label-color, #222222);
784
- }
785
-
786
- .flip-card {
787
- display: block;
788
- position: relative;
789
- padding-bottom: 0.72em; /* halfHeight */
790
- font-size: var(--countdown-size, 2.25rem);
791
- line-height: 0.95;
792
- }
793
-
794
- @media (min-width: 1000px) {
795
- .flip-clock__slot {
796
- font-size: 1.2rem;
797
- }
798
-
799
- .flip-card {
800
- font-size: 3rem;
801
- }
802
- }
803
-
804
- .flip-card__top,
805
- .flip-card__bottom,
806
- .flip-card__back-bottom,
807
- .flip-card__back::before,
808
- .flip-card__back::after{
809
- display: block;
810
- height: 0.72em; /* halfHeight */
811
- color: var(--main-color, #EC685C);
812
- background: var(--main-flip-background-color, #222222);
813
- padding: 0.23em 0.15em 0.4em;
814
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
815
- backface-visibility: hidden;
816
- -webkit-backface-visibility: hidden;
817
- transform-style: preserve-3d;
818
- width: 2.1em;
819
- }
820
-
821
- .flip-card__top-4digits,
822
- .flip-card__bottom-4digits,
823
- .flip-card__back-bottom-4digits,
824
- .flip-card__back-4digits::before,
825
- .flip-card__back-4digits::after {
826
- display: block;
827
- height: 0.72em; /* halfHeight */
828
- color: var(--main-color, #EC685C);
829
- background: var(--main-flip-background-color, #222222);
830
- padding: 0.23em 0.15em 0.4em;
831
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
832
- backface-visibility: hidden;
833
- -webkit-backface-visibility: hidden;
834
- transform-style: preserve-3d;
835
- width: 2.65em;
836
- }
837
-
838
- .flip-card__bottom,
839
- .flip-card__back-bottom,
840
- .flip-card__bottom-4digits,
841
- .flip-card__back-bottom-4digits {
842
- color: var(--second-flip-color, #EC685C);
843
- position: absolute;
844
- top: 50%;
845
- left: 0;
846
- border-top: solid 1px var(--second-flip-background-color, #000);
847
- background: var(--second-flip-background-color, #393939);
848
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
849
- pointer-events: none;
850
- overflow: hidden;
851
- z-index: 2;
852
- }
853
-
854
- .flip-card__back-bottom,
855
- .flip-card__back-bottom-4digits {
856
- z-index: 1;
857
- }
858
-
859
- .flip-card__bottom::after,
860
- .flip-card__back-bottom::after,
861
- .flip-card__bottom-4digits::after,
862
- .flip-card__back-bottom-4digits::after {
863
- display: block;
864
- margin-top: -0.72em; /* Negative halfHeight */
865
- }
866
- .flip-card__back::before,
867
- .flip-card__bottom::after,
868
- .flip-card__back-bottom::after,
869
- .flip-card__back-4digits::before,
870
- .flip-card__bottom-4digits::after,
871
- .flip-card__back-bottom-4digits::after {
872
- content: attr(data-value);
873
- }
874
-
875
- .flip-card__back,
876
- .flip-card__back-4digits {
877
- position: absolute;
878
- top: 0;
879
- height: 100%;
880
- left: 0%;
881
- pointer-events: none;
882
- }
883
- .flip-card__back::before,
884
- .flip-card__back-4digits::before {
885
- position: relative;
886
- overflow: hidden;
887
- z-index: -1;
888
- }
889
-
890
- .flip .flip-card__back::before,
891
- .flip .flip-card__back-4digits::before {
892
- z-index: 1;
893
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
894
- animation-fill-mode: both;
895
- transform-origin: center bottom;
896
- }
897
-
898
- .flip .flip-card__bottom,
899
- .flip .flip-card__bottom-4digits {
900
- transform-origin: center top;
901
- animation-fill-mode: both;
902
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
903
- }
904
- @keyframes flipTop {
905
- 0% {
906
- transform: rotateX(0deg);
907
- z-index: 2;
908
- }
909
- 0%, 99% {
910
- opacity: 1;
911
- }
912
- 100% {
913
- transform: rotateX(-90deg);
914
- opacity: 0;
915
- }
916
- }
917
-
918
- @keyframes flipBottom {
919
- 0%, 50% {
920
- z-index: -1;
921
- transform: rotateX(90deg);
922
- opacity: 0;
923
- }
924
- 51% {
925
- opacity: 1;
926
- }
927
- 100% {
928
- opacity: 1;
929
- transform: rotateX(0deg);
930
- z-index: 5;
931
- }
932
- }
933
-
934
747
  .unika-calendar-box {
935
748
  position: relative;
936
749
  width: 325px !important;
@@ -1188,3 +1001,190 @@ button.swiper-pagination-bullet {
1188
1001
  padding: 0 0px;
1189
1002
  border-bottom: 1px solid
1190
1003
  }
1004
+
1005
+
1006
+ .no-animation__card {
1007
+ font-weight: 500;
1008
+ font-size: var(--countdown-size, 2rem);
1009
+ line-height: 1.5;
1010
+ display: block;
1011
+ color: var(--main-color, #EC685C);
1012
+ }
1013
+
1014
+ .flip-clock {
1015
+ text-align: center;
1016
+ perspective: 600px;
1017
+ margin: 0 auto;
1018
+ }
1019
+
1020
+ .flip-clock *,
1021
+ .flip-clock *:before,
1022
+ .flip-clock *:after {
1023
+ box-sizing: border-box;
1024
+ }
1025
+
1026
+ .flip-clock__piece {
1027
+ display: inline-block;
1028
+ margin: 0 0.2vw;
1029
+ }
1030
+
1031
+ @media (min-width: 1000px) {
1032
+ .flip-clock__piece {
1033
+ margin: 0 5px;
1034
+ }
1035
+ }
1036
+
1037
+ .flip-clock__slot {
1038
+ font-size: var(--label-size, 1rem);
1039
+ line-height: 1.5;
1040
+ display: block;
1041
+ color: var(--label-color, #222222);
1042
+ }
1043
+
1044
+ .flip-card {
1045
+ display: block;
1046
+ position: relative;
1047
+ padding-bottom: 0.72em; /* halfHeight */
1048
+ font-size: var(--countdown-size, 2.25rem);
1049
+ line-height: 0.95;
1050
+ }
1051
+
1052
+ @media (min-width: 1000px) {
1053
+ .flip-clock__slot {
1054
+ font-size: 1.2rem;
1055
+ }
1056
+
1057
+ .flip-card {
1058
+ font-size: 3rem;
1059
+ }
1060
+ }
1061
+
1062
+ .flip-card__top,
1063
+ .flip-card__bottom,
1064
+ .flip-card__back-bottom,
1065
+ .flip-card__back::before,
1066
+ .flip-card__back::after{
1067
+ display: block;
1068
+ height: 0.72em; /* halfHeight */
1069
+ color: var(--main-color, #EC685C);
1070
+ background: var(--main-flip-background-color, #222222);
1071
+ padding: 0.23em 0.15em 0.4em;
1072
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1073
+ backface-visibility: hidden;
1074
+ -webkit-backface-visibility: hidden;
1075
+ transform-style: preserve-3d;
1076
+ width: 2.1em;
1077
+ }
1078
+
1079
+ .flip-card__top-4digits,
1080
+ .flip-card__bottom-4digits,
1081
+ .flip-card__back-bottom-4digits,
1082
+ .flip-card__back-4digits::before,
1083
+ .flip-card__back-4digits::after {
1084
+ display: block;
1085
+ height: 0.72em; /* halfHeight */
1086
+ color: var(--main-color, #EC685C);
1087
+ background: var(--main-flip-background-color, #222222);
1088
+ padding: 0.23em 0.15em 0.4em;
1089
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1090
+ backface-visibility: hidden;
1091
+ -webkit-backface-visibility: hidden;
1092
+ transform-style: preserve-3d;
1093
+ width: 2.65em;
1094
+ }
1095
+
1096
+ .flip-card__bottom,
1097
+ .flip-card__back-bottom,
1098
+ .flip-card__bottom-4digits,
1099
+ .flip-card__back-bottom-4digits {
1100
+ color: var(--second-flip-color, #EC685C);
1101
+ position: absolute;
1102
+ top: 50%;
1103
+ left: 0;
1104
+ border-top: solid 1px var(--second-flip-background-color, #000);
1105
+ background: var(--second-flip-background-color, #393939);
1106
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1107
+ pointer-events: none;
1108
+ overflow: hidden;
1109
+ z-index: 2;
1110
+ }
1111
+
1112
+ .flip-card__back-bottom,
1113
+ .flip-card__back-bottom-4digits {
1114
+ z-index: 1;
1115
+ }
1116
+
1117
+ .flip-card__bottom::after,
1118
+ .flip-card__back-bottom::after,
1119
+ .flip-card__bottom-4digits::after,
1120
+ .flip-card__back-bottom-4digits::after {
1121
+ display: block;
1122
+ margin-top: -0.72em; /* Negative halfHeight */
1123
+ }
1124
+ .flip-card__back::before,
1125
+ .flip-card__bottom::after,
1126
+ .flip-card__back-bottom::after,
1127
+ .flip-card__back-4digits::before,
1128
+ .flip-card__bottom-4digits::after,
1129
+ .flip-card__back-bottom-4digits::after {
1130
+ content: attr(data-value);
1131
+ }
1132
+
1133
+ .flip-card__back,
1134
+ .flip-card__back-4digits {
1135
+ position: absolute;
1136
+ top: 0;
1137
+ height: 100%;
1138
+ left: 0%;
1139
+ pointer-events: none;
1140
+ }
1141
+ .flip-card__back::before,
1142
+ .flip-card__back-4digits::before {
1143
+ position: relative;
1144
+ overflow: hidden;
1145
+ z-index: -1;
1146
+ }
1147
+
1148
+ .flip .flip-card__back::before,
1149
+ .flip .flip-card__back-4digits::before {
1150
+ z-index: 1;
1151
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1152
+ animation-fill-mode: both;
1153
+ transform-origin: center bottom;
1154
+ }
1155
+
1156
+ .flip .flip-card__bottom,
1157
+ .flip .flip-card__bottom-4digits {
1158
+ transform-origin: center top;
1159
+ animation-fill-mode: both;
1160
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1161
+ }
1162
+ @keyframes flipTop {
1163
+ 0% {
1164
+ transform: rotateX(0deg);
1165
+ z-index: 2;
1166
+ }
1167
+ 0%, 99% {
1168
+ opacity: 1;
1169
+ }
1170
+ 100% {
1171
+ transform: rotateX(-90deg);
1172
+ opacity: 0;
1173
+ }
1174
+ }
1175
+
1176
+ @keyframes flipBottom {
1177
+ 0%, 50% {
1178
+ z-index: -1;
1179
+ transform: rotateX(90deg);
1180
+ opacity: 0;
1181
+ }
1182
+ 51% {
1183
+ opacity: 1;
1184
+ }
1185
+ 100% {
1186
+ opacity: 1;
1187
+ transform: rotateX(0deg);
1188
+ z-index: 5;
1189
+ }
1190
+ }
@@ -5115,18 +5115,20 @@ const callDefaultProps = {
5115
5115
  top: '347px',
5116
5116
  width: '120px',
5117
5117
  height: '40px',
5118
+ position: 'absolute',
5118
5119
  size: 'rotate(0deg)',
5120
+ boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
5119
5121
  borderRadius: '10px',
5120
5122
  borderStyle: 'solid',
5121
- borderWidth: '2px',
5123
+ borderWidth: '0px',
5122
5124
  borderColor: 'blue',
5123
5125
  fontColor: '#fff',
5124
5126
  backgroundColor: 'rgb(33, 147, 255)',
5127
+ color: '#fff',
5125
5128
  phoneNumber: '01234567890',
5126
5129
  callText: '一键拨号',
5127
5130
  fontSize: '16px',
5128
- opacity: 1,
5129
- isEditing: false
5131
+ opacity: 1
5130
5132
  };
5131
5133
  const buttonDefaultProps = {
5132
5134
  position: 'absolute',
@@ -5296,9 +5298,9 @@ const transformToComponentProps = (props, extraProps) => {
5296
5298
  }
5297
5299
  };
5298
5300
 
5299
- const defaultStyles$6 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5301
+ const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5300
5302
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5301
- const useStylePick = (props, pickStyles = defaultStyles$6) => {
5303
+ const useStylePick = (props, pickStyles = defaultStyles$7) => {
5302
5304
  return computed(() => pick$1(props, pickStyles));
5303
5305
  };
5304
5306
 
@@ -13140,7 +13142,7 @@ script$f.install = (app) => {
13140
13142
  };
13141
13143
 
13142
13144
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13143
- const defaultStyles$5 = Object.keys(backgroundDefaultProps);
13145
+ const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13144
13146
  // array that contains style props
13145
13147
  var script$e = defineComponent({
13146
13148
  name: 'uni-background',
@@ -13148,7 +13150,7 @@ var script$e = defineComponent({
13148
13150
  ...defaultProps$b
13149
13151
  },
13150
13152
  setup(props) {
13151
- const styleProps = useStylePick(props, defaultStyles$5);
13153
+ const styleProps = useStylePick(props, defaultStyles$6);
13152
13154
  const handleClick = useComponentClick(props);
13153
13155
  return {
13154
13156
  styleProps,
@@ -16027,7 +16029,7 @@ script$c.__scopeId = "data-v-ef842ea2";
16027
16029
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16028
16030
 
16029
16031
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16030
- const defaultStyles$4 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16032
+ const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16031
16033
  // 获取当前日期和时间
16032
16034
  const now$2 = new Date();
16033
16035
  // 添加一天
@@ -16048,7 +16050,7 @@ var script$b = defineComponent({
16048
16050
  setup(props) {
16049
16051
  // 重用并且简化
16050
16052
  // 抽离并且获得 styleProps
16051
- const styleProps = useStylePick(props, defaultStyles$4);
16053
+ const styleProps = useStylePick(props, defaultStyles$5);
16052
16054
  const handleClick = useComponentClick(props);
16053
16055
  const dataList = ref([
16054
16056
  { date: '2028-01-31', value: '' }
@@ -22238,7 +22240,7 @@ script$a.__scopeId = "data-v-47d33153";
22238
22240
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22239
22241
 
22240
22242
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22241
- const defaultStyles$3 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22243
+ const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22242
22244
  // 获取当前日期和时间
22243
22245
  const now = new Date();
22244
22246
  // 添加一天
@@ -22262,7 +22264,7 @@ var script$9 = defineComponent({
22262
22264
  setup(props) {
22263
22265
  // 重用并且简化
22264
22266
  // 抽离并且获得 styleProps
22265
- const styleProps = useStylePick(props, defaultStyles$3);
22267
+ const styleProps = useStylePick(props, defaultStyles$4);
22266
22268
  const handleClick = useComponentClick(props);
22267
22269
  const labelSize = computed(() => {
22268
22270
  if (props.size == 'middle') {
@@ -26035,45 +26037,44 @@ var faSquarePhone = {
26035
26037
 
26036
26038
  library$1.add(faSquarePhone);
26037
26039
  const defaultProps$6 = transformToComponentProps(componentsDefaultProps['uni-call'].props, isEditingProp);
26040
+ const defaultStyles$3 = without$1(Object.keys(callDefaultProps), 'actionType', 'url', 'phoneNumber', 'callText');
26038
26041
  var script$7 = defineComponent({
26039
26042
  name: 'uni-call',
26040
26043
  props: {
26041
26044
  ...defaultProps$6,
26042
- phoneNumber: {
26043
- type: String,
26044
- default: '1234567890'
26045
- },
26046
- fontColor: {
26047
- type: String,
26048
- default: 'white'
26049
- },
26050
- backgroundColor: {
26051
- type: String,
26052
- default: 'blue'
26053
- },
26054
- callText: {
26055
- type: String,
26056
- default: '一键拨号'
26057
- },
26058
- transform: {
26059
- type: String,
26060
- default: 'rotate(0deg)'
26061
- },
26062
- isEditing: {
26063
- type: Boolean,
26064
- default: false
26065
- }
26045
+ // phoneNumber: {
26046
+ // type: String,
26047
+ // default: '1234567890'
26048
+ // },
26049
+ // fontColor: {
26050
+ // type: String,
26051
+ // default: 'white'
26052
+ // },
26053
+ // backgroundColor: {
26054
+ // type: String,
26055
+ // default: 'blue'
26056
+ // },
26057
+ // callText: {
26058
+ // type: String,
26059
+ // default: '一键拨号'
26060
+ // },
26061
+ // transform: {
26062
+ // type: String,
26063
+ // default: 'rotate(0deg)'
26064
+ // },
26065
+ // isEditing: {
26066
+ // type: Boolean,
26067
+ // default: false
26068
+ // }
26066
26069
  },
26067
26070
  components: {
26068
26071
  FontAwesomeIcon
26069
26072
  },
26070
26073
  setup(props) {
26071
- const styleProps = useStylePick(props);
26074
+ const styleProps = useStylePick(props, defaultStyles$3);
26072
26075
  const handleClick = useComponentClick(props);
26073
26076
  const callNumber = () => {
26074
- if (!props.isEditing) {
26075
- window.location.href = `tel:${props.phoneNumber}`;
26076
- }
26077
+ window.location.href = `tel:${props.phoneNumber}`;
26077
26078
  };
26078
26079
  return {
26079
26080
  styleProps,
@@ -26087,9 +26088,12 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
26087
26088
  const _component_font_awesome_icon = resolveComponent("font-awesome-icon");
26088
26089
 
26089
26090
  return (openBlock(), createElementBlock("button", {
26090
- style: normalizeStyle$1({..._ctx.styleProps, color: _ctx.fontColor, position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
26091
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
26092
- class: "call-button uni-call-component"
26091
+ onClick: [
26092
+ _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26093
+ _cache[1] || (_cache[1] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args)))
26094
+ ],
26095
+ style: normalizeStyle$1(_ctx.styleProps),
26096
+ class: "uni-call-component"
26093
26097
  }, [
26094
26098
  createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
26095
26099
  createTextVNode("   "),
@@ -5122,18 +5122,20 @@
5122
5122
  top: '347px',
5123
5123
  width: '120px',
5124
5124
  height: '40px',
5125
+ position: 'absolute',
5125
5126
  size: 'rotate(0deg)',
5127
+ boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
5126
5128
  borderRadius: '10px',
5127
5129
  borderStyle: 'solid',
5128
- borderWidth: '2px',
5130
+ borderWidth: '0px',
5129
5131
  borderColor: 'blue',
5130
5132
  fontColor: '#fff',
5131
5133
  backgroundColor: 'rgb(33, 147, 255)',
5134
+ color: '#fff',
5132
5135
  phoneNumber: '01234567890',
5133
5136
  callText: '一键拨号',
5134
5137
  fontSize: '16px',
5135
- opacity: 1,
5136
- isEditing: false
5138
+ opacity: 1
5137
5139
  };
5138
5140
  const buttonDefaultProps = {
5139
5141
  position: 'absolute',
@@ -5303,9 +5305,9 @@
5303
5305
  }
5304
5306
  };
5305
5307
 
5306
- const defaultStyles$6 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5308
+ const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5307
5309
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5308
- const useStylePick = (props, pickStyles = defaultStyles$6) => {
5310
+ const useStylePick = (props, pickStyles = defaultStyles$7) => {
5309
5311
  return vue.computed(() => pick$1(props, pickStyles));
5310
5312
  };
5311
5313
 
@@ -13147,7 +13149,7 @@
13147
13149
  };
13148
13150
 
13149
13151
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13150
- const defaultStyles$5 = Object.keys(backgroundDefaultProps);
13152
+ const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13151
13153
  // array that contains style props
13152
13154
  var script$e = vue.defineComponent({
13153
13155
  name: 'uni-background',
@@ -13155,7 +13157,7 @@
13155
13157
  ...defaultProps$b
13156
13158
  },
13157
13159
  setup(props) {
13158
- const styleProps = useStylePick(props, defaultStyles$5);
13160
+ const styleProps = useStylePick(props, defaultStyles$6);
13159
13161
  const handleClick = useComponentClick(props);
13160
13162
  return {
13161
13163
  styleProps,
@@ -16034,7 +16036,7 @@
16034
16036
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16035
16037
 
16036
16038
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16037
- const defaultStyles$4 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16039
+ const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16038
16040
  // 获取当前日期和时间
16039
16041
  const now$2 = new Date();
16040
16042
  // 添加一天
@@ -16055,7 +16057,7 @@
16055
16057
  setup(props) {
16056
16058
  // 重用并且简化
16057
16059
  // 抽离并且获得 styleProps
16058
- const styleProps = useStylePick(props, defaultStyles$4);
16060
+ const styleProps = useStylePick(props, defaultStyles$5);
16059
16061
  const handleClick = useComponentClick(props);
16060
16062
  const dataList = vue.ref([
16061
16063
  { date: '2028-01-31', value: '' }
@@ -22245,7 +22247,7 @@
22245
22247
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22246
22248
 
22247
22249
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22248
- const defaultStyles$3 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22250
+ const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22249
22251
  // 获取当前日期和时间
22250
22252
  const now = new Date();
22251
22253
  // 添加一天
@@ -22269,7 +22271,7 @@
22269
22271
  setup(props) {
22270
22272
  // 重用并且简化
22271
22273
  // 抽离并且获得 styleProps
22272
- const styleProps = useStylePick(props, defaultStyles$3);
22274
+ const styleProps = useStylePick(props, defaultStyles$4);
22273
22275
  const handleClick = useComponentClick(props);
22274
22276
  const labelSize = vue.computed(() => {
22275
22277
  if (props.size == 'middle') {
@@ -26042,45 +26044,44 @@
26042
26044
 
26043
26045
  library$1.add(faSquarePhone);
26044
26046
  const defaultProps$6 = transformToComponentProps(componentsDefaultProps['uni-call'].props, isEditingProp);
26047
+ const defaultStyles$3 = without$1(Object.keys(callDefaultProps), 'actionType', 'url', 'phoneNumber', 'callText');
26045
26048
  var script$7 = vue.defineComponent({
26046
26049
  name: 'uni-call',
26047
26050
  props: {
26048
26051
  ...defaultProps$6,
26049
- phoneNumber: {
26050
- type: String,
26051
- default: '1234567890'
26052
- },
26053
- fontColor: {
26054
- type: String,
26055
- default: 'white'
26056
- },
26057
- backgroundColor: {
26058
- type: String,
26059
- default: 'blue'
26060
- },
26061
- callText: {
26062
- type: String,
26063
- default: '一键拨号'
26064
- },
26065
- transform: {
26066
- type: String,
26067
- default: 'rotate(0deg)'
26068
- },
26069
- isEditing: {
26070
- type: Boolean,
26071
- default: false
26072
- }
26052
+ // phoneNumber: {
26053
+ // type: String,
26054
+ // default: '1234567890'
26055
+ // },
26056
+ // fontColor: {
26057
+ // type: String,
26058
+ // default: 'white'
26059
+ // },
26060
+ // backgroundColor: {
26061
+ // type: String,
26062
+ // default: 'blue'
26063
+ // },
26064
+ // callText: {
26065
+ // type: String,
26066
+ // default: '一键拨号'
26067
+ // },
26068
+ // transform: {
26069
+ // type: String,
26070
+ // default: 'rotate(0deg)'
26071
+ // },
26072
+ // isEditing: {
26073
+ // type: Boolean,
26074
+ // default: false
26075
+ // }
26073
26076
  },
26074
26077
  components: {
26075
26078
  FontAwesomeIcon
26076
26079
  },
26077
26080
  setup(props) {
26078
- const styleProps = useStylePick(props);
26081
+ const styleProps = useStylePick(props, defaultStyles$3);
26079
26082
  const handleClick = useComponentClick(props);
26080
26083
  const callNumber = () => {
26081
- if (!props.isEditing) {
26082
- window.location.href = `tel:${props.phoneNumber}`;
26083
- }
26084
+ window.location.href = `tel:${props.phoneNumber}`;
26084
26085
  };
26085
26086
  return {
26086
26087
  styleProps,
@@ -26094,9 +26095,12 @@
26094
26095
  const _component_font_awesome_icon = vue.resolveComponent("font-awesome-icon");
26095
26096
 
26096
26097
  return (vue.openBlock(), vue.createElementBlock("button", {
26097
- style: vue.normalizeStyle({..._ctx.styleProps, color: _ctx.fontColor, position: 'absolute', background: _ctx.backgroundColor, transform: _ctx.transform }),
26098
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args))),
26099
- class: "call-button uni-call-component"
26098
+ onClick: [
26099
+ _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26100
+ _cache[1] || (_cache[1] = (...args) => (_ctx.callNumber && _ctx.callNumber(...args)))
26101
+ ],
26102
+ style: vue.normalizeStyle(_ctx.styleProps),
26103
+ class: "uni-call-component"
26100
26104
  }, [
26101
26105
  vue.createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
26102
26106
  vue.createTextVNode("   "),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.145",
3
+ "version": "1.0.146",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",