unika-components 1.0.150 → 1.0.151

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,37 +1,13 @@
1
+ export declare const defaultStyles: string[];
1
2
  declare const _default: import("vue").DefineComponent<{
2
- mapHtml: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- mapUrl: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- isEditing: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
3
+ [x: string]: any;
14
4
  }, {
15
5
  styleProps: import("vue").ComputedRef<Pick<any, string>>;
16
6
  handleClick: () => void;
17
- openMap: () => void;
18
- iframeHtml: import("vue").ComputedRef<string>;
7
+ iframeHtml: import("vue").ComputedRef<any>;
19
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- mapHtml: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- mapUrl: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- isEditing: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
9
+ [x: string]: any;
32
10
  }>>, {
33
- mapHtml: string;
34
- mapUrl: string;
35
- isEditing: boolean;
11
+ [x: string]: any;
36
12
  }, {}>;
37
13
  export default _default;
@@ -279,9 +279,11 @@ export declare const mapDefaultProps: {
279
279
  top: string;
280
280
  width: string;
281
281
  height: string;
282
+ position: string;
282
283
  transform: string;
283
284
  mapHtml: string;
284
- mapUrl: string;
285
+ url: string;
286
+ actionType: string;
285
287
  };
286
288
  export declare const callDefaultProps: {
287
289
  left: string;
@@ -598,9 +600,11 @@ export declare const componentsDefaultProps: {
598
600
  top: string;
599
601
  width: string;
600
602
  height: string;
603
+ position: string;
601
604
  transform: string;
602
605
  mapHtml: string;
603
- mapUrl: string;
606
+ url: string;
607
+ actionType: string;
604
608
  };
605
609
  };
606
610
  'uni-call': {
@@ -1,37 +1,3 @@
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
- .like-button {
15
- display: flex;
16
- flex-direction: column;
17
- align-items: center;
18
- cursor: pointer;
19
- }
20
-
21
- .icon-heart {
22
- font-size: 24px;
23
- color: #e74c3c;
24
- }
25
-
26
- .liked {
27
- color: #f00; /* 更改颜色以示已赞 */
28
- }
29
-
30
- .like-count {
31
- margin-top: 4px;
32
- font-size: 16px;
33
- color: #333;
34
- }
35
1
 
36
2
  .uni-video-component {
37
3
  position: relative;
@@ -53,6 +19,30 @@ button.uni-text-component {
53
19
  .play-pause-button:hover {
54
20
  background: rgba(0, 0, 0, 0.8);
55
21
  }
22
+
23
+
24
+ .uni-calendar-component {
25
+
26
+ }
27
+ .slot-number {
28
+ position: absolute;
29
+ bottom: 2px;
30
+ left: 7px;
31
+ font-size: 12px;
32
+ color: #666
33
+ }
34
+
35
+ h2.uni-text-component, p.uni-text-component {
36
+ margin-bottom: 0;
37
+ }
38
+ button.uni-text-component {
39
+ padding: 5px 10px;
40
+ cursor: pointer;
41
+ }
42
+ .uni-text-component {
43
+ box-sizing: border-box;
44
+ white-space: pre-wrap;
45
+ }
56
46
 
57
47
  .slide-guide {
58
48
  position: absolute;
@@ -126,40 +116,31 @@ body, html {
126
116
  transform: translate3d(-50%, -50%, 0);
127
117
  }
128
118
  }
129
-
130
- .swiper-warp {
131
- width: 100%;
132
- height: 100%;
133
- }
134
-
135
- .swiper-slide-component {
136
- text-align: center;
137
- }
138
-
139
- .swiper-slide img {
140
- max-width: 100%;
141
- max-height: 100%;
142
- }
143
119
 
144
120
  .uni-image-component {
145
121
  max-width: 100%;
146
122
  }
147
123
 
124
+ .like-button {
125
+ display: flex;
126
+ flex-direction: column;
127
+ align-items: center;
128
+ cursor: pointer;
129
+ }
148
130
 
149
- .uni-calendar-component {
150
-
131
+ .icon-heart {
132
+ font-size: 24px;
133
+ color: #e74c3c;
151
134
  }
152
- .slot-number {
153
- position: absolute;
154
- bottom: 2px;
155
- left: 7px;
156
- font-size: 12px;
157
- color: #666
135
+
136
+ .liked {
137
+ color: #f00; /* 更改颜色以示已赞 */
158
138
  }
159
139
 
160
- .effect {
161
- width: 100%;
162
- height: 100%;
140
+ .like-count {
141
+ margin-top: 4px;
142
+ font-size: 16px;
143
+ color: #333;
163
144
  }
164
145
 
165
146
  .ant-input-number {
@@ -196,6 +177,25 @@ body, html {
196
177
  margin-bottom: 0px;
197
178
  vertical-align: top;
198
179
  }
180
+
181
+ .effect {
182
+ width: 100%;
183
+ height: 100%;
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
+ }
@@ -5106,9 +5106,11 @@ const mapDefaultProps = {
5106
5106
  top: '147px',
5107
5107
  width: '320px',
5108
5108
  height: '340px',
5109
+ position: 'absolute',
5109
5110
  transform: 'rotate(0deg)',
5110
5111
  mapHtml: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>',
5111
- mapUrl: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
5112
+ url: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8',
5113
+ actionType: 'to'
5112
5114
  };
5113
5115
  const callDefaultProps = {
5114
5116
  left: '127px',
@@ -5300,9 +5302,9 @@ const transformToComponentProps = (props, extraProps) => {
5300
5302
  }
5301
5303
  };
5302
5304
 
5303
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5305
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5304
5306
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5305
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5307
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5306
5308
  return computed(() => pick$1(props, pickStyles));
5307
5309
  };
5308
5310
 
@@ -13144,7 +13146,7 @@ script$f.install = (app) => {
13144
13146
  };
13145
13147
 
13146
13148
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13147
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13149
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13148
13150
  // array that contains style props
13149
13151
  var script$e = defineComponent({
13150
13152
  name: 'uni-background',
@@ -13152,7 +13154,7 @@ var script$e = defineComponent({
13152
13154
  ...defaultProps$b
13153
13155
  },
13154
13156
  setup(props) {
13155
- const styleProps = useStylePick(props, defaultStyles$6);
13157
+ const styleProps = useStylePick(props, defaultStyles$7);
13156
13158
  const handleClick = useComponentClick(props);
13157
13159
  return {
13158
13160
  styleProps,
@@ -16031,7 +16033,7 @@ script$c.__scopeId = "data-v-ef842ea2";
16031
16033
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16032
16034
 
16033
16035
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16034
- const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16036
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16035
16037
  // 获取当前日期和时间
16036
16038
  const now$2 = new Date();
16037
16039
  // 添加一天
@@ -16052,7 +16054,7 @@ var script$b = defineComponent({
16052
16054
  setup(props) {
16053
16055
  // 重用并且简化
16054
16056
  // 抽离并且获得 styleProps
16055
- const styleProps = useStylePick(props, defaultStyles$5);
16057
+ const styleProps = useStylePick(props, defaultStyles$6);
16056
16058
  const handleClick = useComponentClick(props);
16057
16059
  const dataList = ref([
16058
16060
  { date: '2028-01-31', value: '' }
@@ -22242,7 +22244,7 @@ script$a.__scopeId = "data-v-47d33153";
22242
22244
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22243
22245
 
22244
22246
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22245
- const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22247
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22246
22248
  // 获取当前日期和时间
22247
22249
  const now = new Date();
22248
22250
  // 添加一天
@@ -22266,7 +22268,7 @@ var script$9 = defineComponent({
22266
22268
  setup(props) {
22267
22269
  // 重用并且简化
22268
22270
  // 抽离并且获得 styleProps
22269
- const styleProps = useStylePick(props, defaultStyles$4);
22271
+ const styleProps = useStylePick(props, defaultStyles$5);
22270
22272
  const handleClick = useComponentClick(props);
22271
22273
  const labelSize = computed(() => {
22272
22274
  if (props.size == 'middle') {
@@ -22351,44 +22353,43 @@ script$9.install = (app) => {
22351
22353
  };
22352
22354
 
22353
22355
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22356
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22354
22357
  // array that contains style props
22355
22358
  var script$8 = defineComponent({
22356
22359
  name: 'uni-map',
22357
22360
  props: {
22358
22361
  ...defaultProps$7,
22359
- mapHtml: {
22360
- type: String,
22361
- default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22362
- },
22363
- mapUrl: {
22364
- type: String,
22365
- default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22366
- },
22367
- isEditing: {
22368
- type: Boolean,
22369
- default: false
22370
- }
22362
+ // mapHtml: {
22363
+ // type: String,
22364
+ // default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22365
+ // },
22366
+ // mapUrl: {
22367
+ // type: String,
22368
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22369
+ // },
22370
+ // isEditing: {
22371
+ // type: Boolean,
22372
+ // default: false
22373
+ // }
22371
22374
  },
22372
22375
  components: {},
22373
22376
  setup(props) {
22374
22377
  // 重用并且简化
22375
22378
  // 抽离并且获得 styleProps
22376
- const styleProps = useStylePick(props);
22379
+ const styleProps = useStylePick(props, defaultStyles$4);
22377
22380
  const handleClick = useComponentClick(props);
22378
- const openMap = () => {
22379
- // 替换为要拨打的电话号码
22380
- // 使用电话链接打电话
22381
- if (!props.isEditing) {
22382
- window.location.href = props.mapUrl;
22383
- }
22384
- };
22381
+ // const openMap = () => {
22382
+ // // 替换为要拨打的电话号码
22383
+ // // 使用电话链接打电话
22384
+ // window.location.href = props.mapUrl
22385
+ // }
22385
22386
  const iframeHtml = computed(() => {
22386
22387
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22387
22388
  });
22388
22389
  return {
22389
22390
  styleProps,
22390
22391
  handleClick,
22391
- openMap,
22392
+ // openMap,
22392
22393
  iframeHtml
22393
22394
  };
22394
22395
  }
@@ -22398,13 +22399,11 @@ const _hoisted_1$4 = ["innerHTML"];
22398
22399
 
22399
22400
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22400
22401
  return (openBlock(), createElementBlock("div", {
22401
- style: normalizeStyle$1({ ..._ctx.styleProps, position: 'absolute'})
22402
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22403
+ style: normalizeStyle$1(_ctx.styleProps),
22404
+ class: "uni-map-component"
22402
22405
  }, [
22403
- createElementVNode("div", {
22404
- innerHTML: _ctx.iframeHtml,
22405
- class: "uni-map-component",
22406
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openMap && _ctx.openMap(...args)))
22407
- }, null, 8 /* PROPS */, _hoisted_1$4)
22406
+ createElementVNode("div", { innerHTML: _ctx.iframeHtml }, null, 8 /* PROPS */, _hoisted_1$4)
22408
22407
  ], 4 /* STYLE */))
22409
22408
  }
22410
22409
 
@@ -5113,9 +5113,11 @@
5113
5113
  top: '147px',
5114
5114
  width: '320px',
5115
5115
  height: '340px',
5116
+ position: 'absolute',
5116
5117
  transform: 'rotate(0deg)',
5117
5118
  mapHtml: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>',
5118
- mapUrl: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
5119
+ url: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8',
5120
+ actionType: 'to'
5119
5121
  };
5120
5122
  const callDefaultProps = {
5121
5123
  left: '127px',
@@ -5307,9 +5309,9 @@
5307
5309
  }
5308
5310
  };
5309
5311
 
5310
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5312
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5311
5313
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5312
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5314
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5313
5315
  return vue.computed(() => pick$1(props, pickStyles));
5314
5316
  };
5315
5317
 
@@ -13151,7 +13153,7 @@
13151
13153
  };
13152
13154
 
13153
13155
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13154
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13156
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13155
13157
  // array that contains style props
13156
13158
  var script$e = vue.defineComponent({
13157
13159
  name: 'uni-background',
@@ -13159,7 +13161,7 @@
13159
13161
  ...defaultProps$b
13160
13162
  },
13161
13163
  setup(props) {
13162
- const styleProps = useStylePick(props, defaultStyles$6);
13164
+ const styleProps = useStylePick(props, defaultStyles$7);
13163
13165
  const handleClick = useComponentClick(props);
13164
13166
  return {
13165
13167
  styleProps,
@@ -16038,7 +16040,7 @@
16038
16040
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16039
16041
 
16040
16042
  const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-calendar'].props, isEditingProp);
16041
- const defaultStyles$5 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16043
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16042
16044
  // 获取当前日期和时间
16043
16045
  const now$2 = new Date();
16044
16046
  // 添加一天
@@ -16059,7 +16061,7 @@
16059
16061
  setup(props) {
16060
16062
  // 重用并且简化
16061
16063
  // 抽离并且获得 styleProps
16062
- const styleProps = useStylePick(props, defaultStyles$5);
16064
+ const styleProps = useStylePick(props, defaultStyles$6);
16063
16065
  const handleClick = useComponentClick(props);
16064
16066
  const dataList = vue.ref([
16065
16067
  { date: '2028-01-31', value: '' }
@@ -22249,7 +22251,7 @@
22249
22251
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22250
22252
 
22251
22253
  const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
22252
- const defaultStyles$4 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22254
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22253
22255
  // 获取当前日期和时间
22254
22256
  const now = new Date();
22255
22257
  // 添加一天
@@ -22273,7 +22275,7 @@
22273
22275
  setup(props) {
22274
22276
  // 重用并且简化
22275
22277
  // 抽离并且获得 styleProps
22276
- const styleProps = useStylePick(props, defaultStyles$4);
22278
+ const styleProps = useStylePick(props, defaultStyles$5);
22277
22279
  const handleClick = useComponentClick(props);
22278
22280
  const labelSize = vue.computed(() => {
22279
22281
  if (props.size == 'middle') {
@@ -22358,44 +22360,43 @@
22358
22360
  };
22359
22361
 
22360
22362
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22363
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22361
22364
  // array that contains style props
22362
22365
  var script$8 = vue.defineComponent({
22363
22366
  name: 'uni-map',
22364
22367
  props: {
22365
22368
  ...defaultProps$7,
22366
- mapHtml: {
22367
- type: String,
22368
- default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22369
- },
22370
- mapUrl: {
22371
- type: String,
22372
- default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22373
- },
22374
- isEditing: {
22375
- type: Boolean,
22376
- default: false
22377
- }
22369
+ // mapHtml: {
22370
+ // type: String,
22371
+ // default: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3876.6314371481812!2d100.6072045757631!3d13.680160998946826!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e2a10075b91f71%3A0x2f48c448da71ee3d!2z4LmC4LiI4LmK4LiB4Liq4Lii4Liy4LihIOC4quC4suC4guC4siBCVFMg4Lit4Li44LiU4Lih4Liq4Li44LiC!5e0!3m2!1szh-CN!2sth!4v1709194607401!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>'
22372
+ // },
22373
+ // mapUrl: {
22374
+ // type: String,
22375
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22376
+ // },
22377
+ // isEditing: {
22378
+ // type: Boolean,
22379
+ // default: false
22380
+ // }
22378
22381
  },
22379
22382
  components: {},
22380
22383
  setup(props) {
22381
22384
  // 重用并且简化
22382
22385
  // 抽离并且获得 styleProps
22383
- const styleProps = useStylePick(props);
22386
+ const styleProps = useStylePick(props, defaultStyles$4);
22384
22387
  const handleClick = useComponentClick(props);
22385
- const openMap = () => {
22386
- // 替换为要拨打的电话号码
22387
- // 使用电话链接打电话
22388
- if (!props.isEditing) {
22389
- window.location.href = props.mapUrl;
22390
- }
22391
- };
22388
+ // const openMap = () => {
22389
+ // // 替换为要拨打的电话号码
22390
+ // // 使用电话链接打电话
22391
+ // window.location.href = props.mapUrl
22392
+ // }
22392
22393
  const iframeHtml = vue.computed(() => {
22393
22394
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22394
22395
  });
22395
22396
  return {
22396
22397
  styleProps,
22397
22398
  handleClick,
22398
- openMap,
22399
+ // openMap,
22399
22400
  iframeHtml
22400
22401
  };
22401
22402
  }
@@ -22405,13 +22406,11 @@
22405
22406
 
22406
22407
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22407
22408
  return (vue.openBlock(), vue.createElementBlock("div", {
22408
- style: vue.normalizeStyle({ ..._ctx.styleProps, position: 'absolute'})
22409
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22410
+ style: vue.normalizeStyle(_ctx.styleProps),
22411
+ class: "uni-map-component"
22409
22412
  }, [
22410
- vue.createElementVNode("div", {
22411
- innerHTML: _ctx.iframeHtml,
22412
- class: "uni-map-component",
22413
- onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.openMap && _ctx.openMap(...args)))
22414
- }, null, 8 /* PROPS */, _hoisted_1$4)
22413
+ vue.createElementVNode("div", { innerHTML: _ctx.iframeHtml }, null, 8 /* PROPS */, _hoisted_1$4)
22415
22414
  ], 4 /* STYLE */))
22416
22415
  }
22417
22416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.150",
3
+ "version": "1.0.151",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",