unika-components 1.0.150 → 1.0.152

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,16 @@ 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;
287
+ borderRadius: string;
288
+ borderWidth: string;
289
+ borderStyle: string;
290
+ borderColor: string;
291
+ backgroundColor: string;
285
292
  };
286
293
  export declare const callDefaultProps: {
287
294
  left: string;
@@ -598,9 +605,16 @@ export declare const componentsDefaultProps: {
598
605
  top: string;
599
606
  width: string;
600
607
  height: string;
608
+ position: string;
601
609
  transform: string;
602
610
  mapHtml: string;
603
- mapUrl: string;
611
+ url: string;
612
+ actionType: string;
613
+ borderRadius: string;
614
+ borderWidth: string;
615
+ borderStyle: string;
616
+ borderColor: string;
617
+ backgroundColor: string;
604
618
  };
605
619
  };
606
620
  'uni-call': {
@@ -1,38 +1,8 @@
1
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;
2
+ .uni-image-component {
3
+ max-width: 100%;
12
4
  }
13
5
 
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
-
36
6
  .uni-video-component {
37
7
  position: relative;
38
8
  text-align: center;
@@ -127,22 +97,43 @@ body, html {
127
97
  }
128
98
  }
129
99
 
130
- .swiper-warp {
100
+ .effect {
131
101
  width: 100%;
132
102
  height: 100%;
133
103
  }
134
104
 
135
- .swiper-slide-component {
136
- text-align: center;
105
+ .like-button {
106
+ display: flex;
107
+ flex-direction: column;
108
+ align-items: center;
109
+ cursor: pointer;
137
110
  }
138
111
 
139
- .swiper-slide img {
140
- max-width: 100%;
141
- max-height: 100%;
112
+ .icon-heart {
113
+ font-size: 24px;
114
+ color: #e74c3c;
115
+ }
116
+
117
+ .liked {
118
+ color: #f00; /* 更改颜色以示已赞 */
119
+ }
120
+
121
+ .like-count {
122
+ margin-top: 4px;
123
+ font-size: 16px;
124
+ color: #333;
142
125
  }
143
126
 
144
- .uni-image-component {
145
- max-width: 100%;
127
+ h2.uni-text-component, p.uni-text-component {
128
+ margin-bottom: 0;
129
+ }
130
+ button.uni-text-component {
131
+ padding: 5px 10px;
132
+ cursor: pointer;
133
+ }
134
+ .uni-text-component {
135
+ box-sizing: border-box;
136
+ white-space: pre-wrap;
146
137
  }
147
138
 
148
139
 
@@ -157,11 +148,6 @@ body, html {
157
148
  color: #666
158
149
  }
159
150
 
160
- .effect {
161
- width: 100%;
162
- height: 100%;
163
- }
164
-
165
151
  .ant-input-number {
166
152
  box-sizing: border-box;
167
153
  margin: 0;
@@ -196,6 +182,20 @@ body, html {
196
182
  margin-bottom: 0px;
197
183
  vertical-align: top;
198
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,16 @@ 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',
5114
+ borderRadius: '0rem',
5115
+ borderWidth: '0rem',
5116
+ borderStyle: 'solid',
5117
+ borderColor: 'rgb(153, 153, 153)',
5118
+ backgroundColor: 'rgb(244, 244, 244)'
5112
5119
  };
5113
5120
  const callDefaultProps = {
5114
5121
  left: '127px',
@@ -5300,9 +5307,9 @@ const transformToComponentProps = (props, extraProps) => {
5300
5307
  }
5301
5308
  };
5302
5309
 
5303
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5310
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5304
5311
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5305
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5312
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5306
5313
  return computed(() => pick$1(props, pickStyles));
5307
5314
  };
5308
5315
 
@@ -13144,7 +13151,7 @@ script$f.install = (app) => {
13144
13151
  };
13145
13152
 
13146
13153
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13147
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13154
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13148
13155
  // array that contains style props
13149
13156
  var script$e = defineComponent({
13150
13157
  name: 'uni-background',
@@ -13152,7 +13159,7 @@ var script$e = defineComponent({
13152
13159
  ...defaultProps$b
13153
13160
  },
13154
13161
  setup(props) {
13155
- const styleProps = useStylePick(props, defaultStyles$6);
13162
+ const styleProps = useStylePick(props, defaultStyles$7);
13156
13163
  const handleClick = useComponentClick(props);
13157
13164
  return {
13158
13165
  styleProps,
@@ -16031,7 +16038,7 @@ script$c.__scopeId = "data-v-ef842ea2";
16031
16038
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16032
16039
 
16033
16040
  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');
16041
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16035
16042
  // 获取当前日期和时间
16036
16043
  const now$2 = new Date();
16037
16044
  // 添加一天
@@ -16052,7 +16059,7 @@ var script$b = defineComponent({
16052
16059
  setup(props) {
16053
16060
  // 重用并且简化
16054
16061
  // 抽离并且获得 styleProps
16055
- const styleProps = useStylePick(props, defaultStyles$5);
16062
+ const styleProps = useStylePick(props, defaultStyles$6);
16056
16063
  const handleClick = useComponentClick(props);
16057
16064
  const dataList = ref([
16058
16065
  { date: '2028-01-31', value: '' }
@@ -22242,7 +22249,7 @@ script$a.__scopeId = "data-v-47d33153";
22242
22249
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22243
22250
 
22244
22251
  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');
22252
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22246
22253
  // 获取当前日期和时间
22247
22254
  const now = new Date();
22248
22255
  // 添加一天
@@ -22266,7 +22273,7 @@ var script$9 = defineComponent({
22266
22273
  setup(props) {
22267
22274
  // 重用并且简化
22268
22275
  // 抽离并且获得 styleProps
22269
- const styleProps = useStylePick(props, defaultStyles$4);
22276
+ const styleProps = useStylePick(props, defaultStyles$5);
22270
22277
  const handleClick = useComponentClick(props);
22271
22278
  const labelSize = computed(() => {
22272
22279
  if (props.size == 'middle') {
@@ -22351,44 +22358,43 @@ script$9.install = (app) => {
22351
22358
  };
22352
22359
 
22353
22360
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22361
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22354
22362
  // array that contains style props
22355
22363
  var script$8 = defineComponent({
22356
22364
  name: 'uni-map',
22357
22365
  props: {
22358
22366
  ...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
- }
22367
+ // mapHtml: {
22368
+ // type: String,
22369
+ // 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>'
22370
+ // },
22371
+ // mapUrl: {
22372
+ // type: String,
22373
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22374
+ // },
22375
+ // isEditing: {
22376
+ // type: Boolean,
22377
+ // default: false
22378
+ // }
22371
22379
  },
22372
22380
  components: {},
22373
22381
  setup(props) {
22374
22382
  // 重用并且简化
22375
22383
  // 抽离并且获得 styleProps
22376
- const styleProps = useStylePick(props);
22384
+ const styleProps = useStylePick(props, defaultStyles$4);
22377
22385
  const handleClick = useComponentClick(props);
22378
- const openMap = () => {
22379
- // 替换为要拨打的电话号码
22380
- // 使用电话链接打电话
22381
- if (!props.isEditing) {
22382
- window.location.href = props.mapUrl;
22383
- }
22384
- };
22386
+ // const openMap = () => {
22387
+ // // 替换为要拨打的电话号码
22388
+ // // 使用电话链接打电话
22389
+ // window.location.href = props.mapUrl
22390
+ // }
22385
22391
  const iframeHtml = computed(() => {
22386
22392
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22387
22393
  });
22388
22394
  return {
22389
22395
  styleProps,
22390
22396
  handleClick,
22391
- openMap,
22397
+ // openMap,
22392
22398
  iframeHtml
22393
22399
  };
22394
22400
  }
@@ -22398,14 +22404,11 @@ const _hoisted_1$4 = ["innerHTML"];
22398
22404
 
22399
22405
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22400
22406
  return (openBlock(), createElementBlock("div", {
22401
- style: normalizeStyle$1({ ..._ctx.styleProps, position: 'absolute'})
22402
- }, [
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)
22408
- ], 4 /* STYLE */))
22407
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22408
+ style: normalizeStyle$1(_ctx.styleProps),
22409
+ class: "uni-map-component",
22410
+ innerHTML: _ctx.iframeHtml
22411
+ }, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
22409
22412
  }
22410
22413
 
22411
22414
  script$8.render = render$9;
@@ -5113,9 +5113,16 @@
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',
5121
+ borderRadius: '0rem',
5122
+ borderWidth: '0rem',
5123
+ borderStyle: 'solid',
5124
+ borderColor: 'rgb(153, 153, 153)',
5125
+ backgroundColor: 'rgb(244, 244, 244)'
5119
5126
  };
5120
5127
  const callDefaultProps = {
5121
5128
  left: '127px',
@@ -5307,9 +5314,9 @@
5307
5314
  }
5308
5315
  };
5309
5316
 
5310
- const defaultStyles$7 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5317
+ const defaultStyles$8 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5311
5318
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5312
- const useStylePick = (props, pickStyles = defaultStyles$7) => {
5319
+ const useStylePick = (props, pickStyles = defaultStyles$8) => {
5313
5320
  return vue.computed(() => pick$1(props, pickStyles));
5314
5321
  };
5315
5322
 
@@ -13151,7 +13158,7 @@
13151
13158
  };
13152
13159
 
13153
13160
  const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
13154
- const defaultStyles$6 = Object.keys(backgroundDefaultProps);
13161
+ const defaultStyles$7 = Object.keys(backgroundDefaultProps);
13155
13162
  // array that contains style props
13156
13163
  var script$e = vue.defineComponent({
13157
13164
  name: 'uni-background',
@@ -13159,7 +13166,7 @@
13159
13166
  ...defaultProps$b
13160
13167
  },
13161
13168
  setup(props) {
13162
- const styleProps = useStylePick(props, defaultStyles$6);
13169
+ const styleProps = useStylePick(props, defaultStyles$7);
13163
13170
  const handleClick = useComponentClick(props);
13164
13171
  return {
13165
13172
  styleProps,
@@ -16038,7 +16045,7 @@
16038
16045
  script$c.__file = "src/components/UniCalendar/Calendar.vue";
16039
16046
 
16040
16047
  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');
16048
+ const defaultStyles$6 = without$1(Object.keys(calendarDefaultProps), 'actionType', 'url', 'backgroundColor', 'borderRadius', 'borderColor', 'borderStyle', 'borderWidth', 'date', 'dateColor', 'themeColor', 'heartColor', 'themeStyle', 'language', 'size');
16042
16049
  // 获取当前日期和时间
16043
16050
  const now$2 = new Date();
16044
16051
  // 添加一天
@@ -16059,7 +16066,7 @@
16059
16066
  setup(props) {
16060
16067
  // 重用并且简化
16061
16068
  // 抽离并且获得 styleProps
16062
- const styleProps = useStylePick(props, defaultStyles$5);
16069
+ const styleProps = useStylePick(props, defaultStyles$6);
16063
16070
  const handleClick = useComponentClick(props);
16064
16071
  const dataList = vue.ref([
16065
16072
  { date: '2028-01-31', value: '' }
@@ -22249,7 +22256,7 @@
22249
22256
  script$a.__file = "src/components/UniCountdown/Countdown.vue";
22250
22257
 
22251
22258
  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');
22259
+ const defaultStyles$5 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
22253
22260
  // 获取当前日期和时间
22254
22261
  const now = new Date();
22255
22262
  // 添加一天
@@ -22273,7 +22280,7 @@
22273
22280
  setup(props) {
22274
22281
  // 重用并且简化
22275
22282
  // 抽离并且获得 styleProps
22276
- const styleProps = useStylePick(props, defaultStyles$4);
22283
+ const styleProps = useStylePick(props, defaultStyles$5);
22277
22284
  const handleClick = useComponentClick(props);
22278
22285
  const labelSize = vue.computed(() => {
22279
22286
  if (props.size == 'middle') {
@@ -22358,44 +22365,43 @@
22358
22365
  };
22359
22366
 
22360
22367
  const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-map'].props, isEditingProp);
22368
+ const defaultStyles$4 = without$1(Object.keys(mapDefaultProps), 'actionType', 'url', 'mapHtml');
22361
22369
  // array that contains style props
22362
22370
  var script$8 = vue.defineComponent({
22363
22371
  name: 'uni-map',
22364
22372
  props: {
22365
22373
  ...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
- }
22374
+ // mapHtml: {
22375
+ // type: String,
22376
+ // 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>'
22377
+ // },
22378
+ // mapUrl: {
22379
+ // type: String,
22380
+ // default: 'https://maps.app.goo.gl/YZypYXfBVKvTXJ2R8'
22381
+ // },
22382
+ // isEditing: {
22383
+ // type: Boolean,
22384
+ // default: false
22385
+ // }
22378
22386
  },
22379
22387
  components: {},
22380
22388
  setup(props) {
22381
22389
  // 重用并且简化
22382
22390
  // 抽离并且获得 styleProps
22383
- const styleProps = useStylePick(props);
22391
+ const styleProps = useStylePick(props, defaultStyles$4);
22384
22392
  const handleClick = useComponentClick(props);
22385
- const openMap = () => {
22386
- // 替换为要拨打的电话号码
22387
- // 使用电话链接打电话
22388
- if (!props.isEditing) {
22389
- window.location.href = props.mapUrl;
22390
- }
22391
- };
22393
+ // const openMap = () => {
22394
+ // // 替换为要拨打的电话号码
22395
+ // // 使用电话链接打电话
22396
+ // window.location.href = props.mapUrl
22397
+ // }
22392
22398
  const iframeHtml = vue.computed(() => {
22393
22399
  return props.mapHtml.replace('width="600"', 'width="100%"').replace('height="450"', 'height="100%"');
22394
22400
  });
22395
22401
  return {
22396
22402
  styleProps,
22397
22403
  handleClick,
22398
- openMap,
22404
+ // openMap,
22399
22405
  iframeHtml
22400
22406
  };
22401
22407
  }
@@ -22405,14 +22411,11 @@
22405
22411
 
22406
22412
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
22407
22413
  return (vue.openBlock(), vue.createElementBlock("div", {
22408
- style: vue.normalizeStyle({ ..._ctx.styleProps, position: 'absolute'})
22409
- }, [
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)
22415
- ], 4 /* STYLE */))
22414
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22415
+ style: vue.normalizeStyle(_ctx.styleProps),
22416
+ class: "uni-map-component",
22417
+ innerHTML: _ctx.iframeHtml
22418
+ }, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
22416
22419
  }
22417
22420
 
22418
22421
  script$8.render = render$9;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",