unika-components 1.0.216 → 1.0.218

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.
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  handleClick: () => void;
7
7
  labelSize: import("vue").ComputedRef<"0.8rem" | "1rem" | ".6rem">;
8
8
  countdownSize: import("vue").ComputedRef<"1rem" | "1.5rem" | "2.25rem">;
9
- labels: import("vue").ComputedRef<{
9
+ computedLabels: import("vue").Ref<{
10
10
  days: string;
11
11
  hours: string;
12
12
  minutes: string;
@@ -1,4 +1,16 @@
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;
12
+ }
13
+
2
14
  .uni-image-component {
3
15
  max-width: 100%;
4
16
  }
@@ -23,18 +35,9 @@
23
35
  .play-pause-button:hover {
24
36
  background: rgba(0, 0, 0, 0.8);
25
37
  }
26
-
27
- h2.uni-text-component, p.uni-text-component {
28
- margin-bottom: 0;
29
- }
30
- button.uni-text-component {
31
- padding: 5px 10px;
32
- cursor: pointer;
33
- }
34
- .uni-text-component {
35
- box-sizing: border-box;
36
- white-space: pre-wrap;
37
- }
38
+
39
+ .uni-build-up-component {
40
+ }
38
41
 
39
42
  .slide-guide {
40
43
  position: absolute;
@@ -109,37 +112,11 @@ body, html {
109
112
  }
110
113
  }
111
114
 
112
-
113
- .uni-calendar-component {
114
-
115
- }
116
- .slot-number {
117
- position: absolute;
118
- bottom: 2px;
119
- left: 7px;
120
- font-size: 12px;
121
- color: #666
122
- }
123
-
124
115
  .effect {
125
116
  width: 100%;
126
117
  height: 100%;
127
118
  }
128
119
 
129
- .swiper-warp {
130
- width: 100%;
131
- height: 100%;
132
- }
133
-
134
- .swiper-slide-component {
135
- text-align: center;
136
- }
137
-
138
- .swiper-slide img {
139
- max-width: 100%;
140
- max-height: 100%;
141
- }
142
-
143
120
  .like-button {
144
121
  display: flex;
145
122
  flex-direction: column;
@@ -162,6 +139,18 @@ body, html {
162
139
  color: #333;
163
140
  }
164
141
 
142
+
143
+ .uni-calendar-component {
144
+
145
+ }
146
+ .slot-number {
147
+ position: absolute;
148
+ bottom: 2px;
149
+ left: 7px;
150
+ font-size: 12px;
151
+ color: #666
152
+ }
153
+
165
154
  .ant-input-number {
166
155
  box-sizing: border-box;
167
156
  margin: 0;
@@ -197,8 +186,19 @@ body, html {
197
186
  vertical-align: top;
198
187
  }
199
188
 
200
- .uni-build-up-component {
201
- }
189
+ .swiper-warp {
190
+ width: 100%;
191
+ height: 100%;
192
+ }
193
+
194
+ .swiper-slide-component {
195
+ text-align: center;
196
+ }
197
+
198
+ .swiper-slide img {
199
+ max-width: 100%;
200
+ max-height: 100%;
201
+ }
202
202
 
203
203
  .uni-svg-component {
204
204
  display: inline-block;
@@ -751,6 +751,193 @@ button.swiper-pagination-bullet {
751
751
  backface-visibility: hidden;
752
752
  }
753
753
 
754
+
755
+ .no-animation__card {
756
+ font-weight: 500;
757
+ font-size: var(--countdown-size, 2rem);
758
+ line-height: 1.5;
759
+ display: block;
760
+ color: var(--main-color, #EC685C);
761
+ }
762
+
763
+ .flip-clock {
764
+ text-align: center;
765
+ perspective: 600px;
766
+ margin: 0 auto;
767
+ }
768
+
769
+ .flip-clock *,
770
+ .flip-clock *:before,
771
+ .flip-clock *:after {
772
+ box-sizing: border-box;
773
+ }
774
+
775
+ .flip-clock__piece {
776
+ display: inline-block;
777
+ margin: 0 0.2vw;
778
+ }
779
+
780
+ @media (min-width: 1000px) {
781
+ .flip-clock__piece {
782
+ margin: 0 5px;
783
+ }
784
+ }
785
+
786
+ .flip-clock__slot {
787
+ font-size: var(--label-size, 1rem);
788
+ line-height: 1.5;
789
+ display: block;
790
+ color: var(--label-color, #222222);
791
+ }
792
+
793
+ .flip-card {
794
+ display: block;
795
+ position: relative;
796
+ padding-bottom: 0.72em; /* halfHeight */
797
+ font-size: var(--countdown-size, 2.25rem);
798
+ line-height: 0.95;
799
+ }
800
+
801
+ @media (min-width: 1000px) {
802
+ .flip-clock__slot {
803
+ font-size: 1.2rem;
804
+ }
805
+
806
+ .flip-card {
807
+ font-size: 3rem;
808
+ }
809
+ }
810
+
811
+ .flip-card__top,
812
+ .flip-card__bottom,
813
+ .flip-card__back-bottom,
814
+ .flip-card__back::before,
815
+ .flip-card__back::after{
816
+ display: block;
817
+ height: 0.72em; /* halfHeight */
818
+ color: var(--main-color, #EC685C);
819
+ background: var(--main-flip-background-color, #222222);
820
+ padding: 0.23em 0.15em 0.4em;
821
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
822
+ backface-visibility: hidden;
823
+ -webkit-backface-visibility: hidden;
824
+ transform-style: preserve-3d;
825
+ width: 2.1em;
826
+ }
827
+
828
+ .flip-card__top-4digits,
829
+ .flip-card__bottom-4digits,
830
+ .flip-card__back-bottom-4digits,
831
+ .flip-card__back-4digits::before,
832
+ .flip-card__back-4digits::after {
833
+ display: block;
834
+ height: 0.72em; /* halfHeight */
835
+ color: var(--main-color, #EC685C);
836
+ background: var(--main-flip-background-color, #222222);
837
+ padding: 0.23em 0.15em 0.4em;
838
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
839
+ backface-visibility: hidden;
840
+ -webkit-backface-visibility: hidden;
841
+ transform-style: preserve-3d;
842
+ width: 2.65em;
843
+ }
844
+
845
+ .flip-card__bottom,
846
+ .flip-card__back-bottom,
847
+ .flip-card__bottom-4digits,
848
+ .flip-card__back-bottom-4digits {
849
+ color: var(--second-flip-color, #EC685C);
850
+ position: absolute;
851
+ top: 50%;
852
+ left: 0;
853
+ border-top: solid 1px var(--second-flip-background-color, #000);
854
+ background: var(--second-flip-background-color, #393939);
855
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
856
+ pointer-events: none;
857
+ overflow: hidden;
858
+ z-index: 2;
859
+ }
860
+
861
+ .flip-card__back-bottom,
862
+ .flip-card__back-bottom-4digits {
863
+ z-index: 1;
864
+ }
865
+
866
+ .flip-card__bottom::after,
867
+ .flip-card__back-bottom::after,
868
+ .flip-card__bottom-4digits::after,
869
+ .flip-card__back-bottom-4digits::after {
870
+ display: block;
871
+ margin-top: -0.72em; /* Negative halfHeight */
872
+ }
873
+ .flip-card__back::before,
874
+ .flip-card__bottom::after,
875
+ .flip-card__back-bottom::after,
876
+ .flip-card__back-4digits::before,
877
+ .flip-card__bottom-4digits::after,
878
+ .flip-card__back-bottom-4digits::after {
879
+ content: attr(data-value);
880
+ }
881
+
882
+ .flip-card__back,
883
+ .flip-card__back-4digits {
884
+ position: absolute;
885
+ top: 0;
886
+ height: 100%;
887
+ left: 0%;
888
+ pointer-events: none;
889
+ }
890
+ .flip-card__back::before,
891
+ .flip-card__back-4digits::before {
892
+ position: relative;
893
+ overflow: hidden;
894
+ z-index: -1;
895
+ }
896
+
897
+ .flip .flip-card__back::before,
898
+ .flip .flip-card__back-4digits::before {
899
+ z-index: 1;
900
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
901
+ animation-fill-mode: both;
902
+ transform-origin: center bottom;
903
+ }
904
+
905
+ .flip .flip-card__bottom,
906
+ .flip .flip-card__bottom-4digits {
907
+ transform-origin: center top;
908
+ animation-fill-mode: both;
909
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
910
+ }
911
+ @keyframes flipTop {
912
+ 0% {
913
+ transform: rotateX(0deg);
914
+ z-index: 2;
915
+ }
916
+ 0%, 99% {
917
+ opacity: 1;
918
+ }
919
+ 100% {
920
+ transform: rotateX(-90deg);
921
+ opacity: 0;
922
+ }
923
+ }
924
+
925
+ @keyframes flipBottom {
926
+ 0%, 50% {
927
+ z-index: -1;
928
+ transform: rotateX(90deg);
929
+ opacity: 0;
930
+ }
931
+ 51% {
932
+ opacity: 1;
933
+ }
934
+ 100% {
935
+ opacity: 1;
936
+ transform: rotateX(0deg);
937
+ z-index: 5;
938
+ }
939
+ }
940
+
754
941
  .unika-calendar-box {
755
942
  position: relative;
756
943
  width: 325px !important;
@@ -1008,190 +1195,3 @@ button.swiper-pagination-bullet {
1008
1195
  padding: 0 0px;
1009
1196
  border-bottom: 1px solid
1010
1197
  }
1011
-
1012
-
1013
- .no-animation__card {
1014
- font-weight: 500;
1015
- font-size: var(--countdown-size, 2rem);
1016
- line-height: 1.5;
1017
- display: block;
1018
- color: var(--main-color, #EC685C);
1019
- }
1020
-
1021
- .flip-clock {
1022
- text-align: center;
1023
- perspective: 600px;
1024
- margin: 0 auto;
1025
- }
1026
-
1027
- .flip-clock *,
1028
- .flip-clock *:before,
1029
- .flip-clock *:after {
1030
- box-sizing: border-box;
1031
- }
1032
-
1033
- .flip-clock__piece {
1034
- display: inline-block;
1035
- margin: 0 0.2vw;
1036
- }
1037
-
1038
- @media (min-width: 1000px) {
1039
- .flip-clock__piece {
1040
- margin: 0 5px;
1041
- }
1042
- }
1043
-
1044
- .flip-clock__slot {
1045
- font-size: var(--label-size, 1rem);
1046
- line-height: 1.5;
1047
- display: block;
1048
- color: var(--label-color, #222222);
1049
- }
1050
-
1051
- .flip-card {
1052
- display: block;
1053
- position: relative;
1054
- padding-bottom: 0.72em; /* halfHeight */
1055
- font-size: var(--countdown-size, 2.25rem);
1056
- line-height: 0.95;
1057
- }
1058
-
1059
- @media (min-width: 1000px) {
1060
- .flip-clock__slot {
1061
- font-size: 1.2rem;
1062
- }
1063
-
1064
- .flip-card {
1065
- font-size: 3rem;
1066
- }
1067
- }
1068
-
1069
- .flip-card__top,
1070
- .flip-card__bottom,
1071
- .flip-card__back-bottom,
1072
- .flip-card__back::before,
1073
- .flip-card__back::after{
1074
- display: block;
1075
- height: 0.72em; /* halfHeight */
1076
- color: var(--main-color, #EC685C);
1077
- background: var(--main-flip-background-color, #222222);
1078
- padding: 0.23em 0.15em 0.4em;
1079
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1080
- backface-visibility: hidden;
1081
- -webkit-backface-visibility: hidden;
1082
- transform-style: preserve-3d;
1083
- width: 2.1em;
1084
- }
1085
-
1086
- .flip-card__top-4digits,
1087
- .flip-card__bottom-4digits,
1088
- .flip-card__back-bottom-4digits,
1089
- .flip-card__back-4digits::before,
1090
- .flip-card__back-4digits::after {
1091
- display: block;
1092
- height: 0.72em; /* halfHeight */
1093
- color: var(--main-color, #EC685C);
1094
- background: var(--main-flip-background-color, #222222);
1095
- padding: 0.23em 0.15em 0.4em;
1096
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1097
- backface-visibility: hidden;
1098
- -webkit-backface-visibility: hidden;
1099
- transform-style: preserve-3d;
1100
- width: 2.65em;
1101
- }
1102
-
1103
- .flip-card__bottom,
1104
- .flip-card__back-bottom,
1105
- .flip-card__bottom-4digits,
1106
- .flip-card__back-bottom-4digits {
1107
- color: var(--second-flip-color, #EC685C);
1108
- position: absolute;
1109
- top: 50%;
1110
- left: 0;
1111
- border-top: solid 1px var(--second-flip-background-color, #000);
1112
- background: var(--second-flip-background-color, #393939);
1113
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1114
- pointer-events: none;
1115
- overflow: hidden;
1116
- z-index: 2;
1117
- }
1118
-
1119
- .flip-card__back-bottom,
1120
- .flip-card__back-bottom-4digits {
1121
- z-index: 1;
1122
- }
1123
-
1124
- .flip-card__bottom::after,
1125
- .flip-card__back-bottom::after,
1126
- .flip-card__bottom-4digits::after,
1127
- .flip-card__back-bottom-4digits::after {
1128
- display: block;
1129
- margin-top: -0.72em; /* Negative halfHeight */
1130
- }
1131
- .flip-card__back::before,
1132
- .flip-card__bottom::after,
1133
- .flip-card__back-bottom::after,
1134
- .flip-card__back-4digits::before,
1135
- .flip-card__bottom-4digits::after,
1136
- .flip-card__back-bottom-4digits::after {
1137
- content: attr(data-value);
1138
- }
1139
-
1140
- .flip-card__back,
1141
- .flip-card__back-4digits {
1142
- position: absolute;
1143
- top: 0;
1144
- height: 100%;
1145
- left: 0%;
1146
- pointer-events: none;
1147
- }
1148
- .flip-card__back::before,
1149
- .flip-card__back-4digits::before {
1150
- position: relative;
1151
- overflow: hidden;
1152
- z-index: -1;
1153
- }
1154
-
1155
- .flip .flip-card__back::before,
1156
- .flip .flip-card__back-4digits::before {
1157
- z-index: 1;
1158
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1159
- animation-fill-mode: both;
1160
- transform-origin: center bottom;
1161
- }
1162
-
1163
- .flip .flip-card__bottom,
1164
- .flip .flip-card__bottom-4digits {
1165
- transform-origin: center top;
1166
- animation-fill-mode: both;
1167
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1168
- }
1169
- @keyframes flipTop {
1170
- 0% {
1171
- transform: rotateX(0deg);
1172
- z-index: 2;
1173
- }
1174
- 0%, 99% {
1175
- opacity: 1;
1176
- }
1177
- 100% {
1178
- transform: rotateX(-90deg);
1179
- opacity: 0;
1180
- }
1181
- }
1182
-
1183
- @keyframes flipBottom {
1184
- 0%, 50% {
1185
- z-index: -1;
1186
- transform: rotateX(90deg);
1187
- opacity: 0;
1188
- }
1189
- 51% {
1190
- opacity: 1;
1191
- }
1192
- 100% {
1193
- opacity: 1;
1194
- transform: rotateX(0deg);
1195
- z-index: 5;
1196
- }
1197
- }
@@ -5422,7 +5422,7 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
5422
5422
  src: _ctx.imageSrc,
5423
5423
  style: normalizeStyle$1(_ctx.styleProps),
5424
5424
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5425
- class: "uni-image-component",
5425
+ class: "uni-image-component inner-component",
5426
5426
  draggable: false
5427
5427
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$c))
5428
5428
  }
@@ -5456,7 +5456,7 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
5456
5456
  return (openBlock(), createElementBlock("div", {
5457
5457
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5458
5458
  style: normalizeStyle$1(_ctx.styleProps),
5459
- class: "uni-shape-component",
5459
+ class: "uni-shape-component inner-component",
5460
5460
  draggable: false
5461
5461
  }, null, 4 /* STYLE */))
5462
5462
  }
@@ -13228,7 +13228,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
13228
13228
  return (openBlock(), createElementBlock("div", {
13229
13229
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
13230
13230
  style: normalizeStyle$1(_ctx.styleProps),
13231
- class: "uni-background-component",
13231
+ class: "uni-background-component inner-component",
13232
13232
  draggable: false
13233
13233
  }, null, 4 /* STYLE */))
13234
13234
  }
@@ -13310,7 +13310,7 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
13310
13310
  return (openBlock(), createElementBlock("div", {
13311
13311
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
13312
13312
  style: normalizeStyle$1(_ctx.styleProps),
13313
- class: "uni-video-component"
13313
+ class: "uni-video-component inner-component"
13314
13314
  }, [
13315
13315
  (_ctx.isIFrame)
13316
13316
  ? (openBlock(), createElementBlock("div", {
@@ -16167,7 +16167,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
16167
16167
  return (openBlock(), createElementBlock("div", {
16168
16168
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
16169
16169
  style: normalizeStyle$1({ ..._ctx.styleProps, transform: _ctx.size }),
16170
- class: "uni-calendar-component"
16170
+ class: "uni-calendar-component inner-component"
16171
16171
  }, [
16172
16172
  createVNode(_component_Calendar, {
16173
16173
  ref: "calendarRef",
@@ -22355,8 +22355,8 @@ var script$b = defineComponent({
22355
22355
  return "1rem";
22356
22356
  }
22357
22357
  });
22358
- const labels = computed(() => {
22359
- if (props.language == 'en') {
22358
+ const getLabels = (language) => {
22359
+ if (language == 'en') {
22360
22360
  return {
22361
22361
  days: 'Days',
22362
22362
  hours: 'Hours',
@@ -22372,13 +22372,18 @@ var script$b = defineComponent({
22372
22372
  seconds: 'ที่สอง'
22373
22373
  };
22374
22374
  }
22375
+ };
22376
+ const labels = ref(getLabels(props.language));
22377
+ // 监听 props.language 的变化
22378
+ watch(() => props.language, (newLanguage) => {
22379
+ labels.value = getLabels(newLanguage);
22375
22380
  });
22376
22381
  return {
22377
22382
  styleProps,
22378
22383
  handleClick,
22379
22384
  labelSize,
22380
22385
  countdownSize,
22381
- labels
22386
+ computedLabels: labels
22382
22387
  };
22383
22388
  }
22384
22389
  });
@@ -22389,7 +22394,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
22389
22394
  return (openBlock(), createElementBlock("div", {
22390
22395
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22391
22396
  style: normalizeStyle$1(_ctx.styleProps),
22392
- class: "uni-countdown-component"
22397
+ class: "uni-countdown-component inner-component"
22393
22398
  }, [
22394
22399
  createVNode(_component_Countdown, {
22395
22400
  deadline: _ctx.deadline,
@@ -22399,7 +22404,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
22399
22404
  secondFlipBackgroundColor: _ctx.mainFlipBackgroundColor,
22400
22405
  labelColor: _ctx.labelColor,
22401
22406
  showLabels: _ctx.showLabels,
22402
- labels: _ctx.labels,
22407
+ labels: _ctx.computedLabels,
22403
22408
  language: _ctx.language,
22404
22409
  countdownSize: _ctx.countdownSize,
22405
22410
  flipAnimation: _ctx.flipAnimation,
@@ -22464,7 +22469,7 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
22464
22469
  return (openBlock(), createElementBlock("div", {
22465
22470
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22466
22471
  style: normalizeStyle$1(_ctx.styleProps),
22467
- class: "uni-map-component",
22472
+ class: "uni-map-component inner-component",
22468
22473
  innerHTML: _ctx.iframeHtml
22469
22474
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$5))
22470
22475
  }
@@ -26129,7 +26134,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
26129
26134
  return (openBlock(), createElementBlock("button", {
26130
26135
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26131
26136
  style: normalizeStyle$1(_ctx.styleProps),
26132
- class: "uni-call-component"
26137
+ class: "uni-call-component inner-component"
26133
26138
  }, [
26134
26139
  createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
26135
26140
  createTextVNode("   "),
@@ -26215,7 +26220,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
26215
26220
 
26216
26221
  return (openBlock(), createElementBlock("div", {
26217
26222
  style: normalizeStyle$1(_ctx.styleProps),
26218
- class: "like-button uni-like-component",
26223
+ class: "like-button uni-like-component inner-component",
26219
26224
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.toggleLike && _ctx.toggleLike(...args)))
26220
26225
  }, [
26221
26226
  createVNode(_component_font_awesome_icon, {
@@ -26567,7 +26572,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
26567
26572
  return (openBlock(), createElementBlock("div", {
26568
26573
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26569
26574
  style: normalizeStyle$1(_ctx.styleProps),
26570
- class: "uni-effect-component"
26575
+ class: "uni-effect-component inner-component"
26571
26576
  }, [
26572
26577
  createVNode(_component_Particles, {
26573
26578
  id: "tsparticles",
@@ -53752,7 +53757,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
53752
53757
  return (openBlock(), createElementBlock("div", {
53753
53758
  onClick: _cache[5] || (_cache[5] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
53754
53759
  style: normalizeStyle$1(_ctx.styleProps),
53755
- class: "uni-register-form-component"
53760
+ class: "uni-register-form-component inner-component"
53756
53761
  }, [
53757
53762
  _hoisted_1$3,
53758
53763
  createVNode(_component_a_form, {
@@ -75412,7 +75417,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
75412
75417
  loop: _ctx.loopC,
75413
75418
  delay: _ctx.delayC,
75414
75419
  ref: "lottieAnimation",
75415
- class: "uni-lotties-component"
75420
+ class: "uni-lotties-component inner-component"
75416
75421
  }, null, 8 /* PROPS */, ["onClick", "style", "animationLink", "loop", "delay"]))
75417
75422
  }
75418
75423
 
@@ -75463,7 +75468,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
75463
75468
 
75464
75469
  return (openBlock(), createElementBlock("div", {
75465
75470
  style: normalizeStyle$1(_ctx.styleProps),
75466
- class: "uni-swiper-component"
75471
+ class: "uni-swiper-component inner-component"
75467
75472
  }, [
75468
75473
  createVNode(_component_swiper, {
75469
75474
  class: "swiper-warp",
@@ -75528,7 +75533,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
75528
75533
  return (openBlock(), createElementBlock("button", {
75529
75534
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75530
75535
  style: normalizeStyle$1(_ctx.styleProps),
75531
- class: "uni-button-component"
75536
+ class: "uni-button-component inner-component"
75532
75537
  }, [
75533
75538
  renderSlot(_ctx.$slots, "default", {}, () => [
75534
75539
  createTextVNode(toDisplayString(_ctx.buttonText), 1 /* TEXT */)
@@ -75579,7 +75584,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
75579
75584
  return (openBlock(), createElementBlock("div", {
75580
75585
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75581
75586
  style: normalizeStyle$1(_ctx.styleProps),
75582
- class: "uni-build-up-component"
75587
+ class: "uni-build-up-component inner-component"
75583
75588
  }, null, 4 /* STYLE */))
75584
75589
  }
75585
75590
 
@@ -75692,7 +75697,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
75692
75697
  return (openBlock(), createElementBlock("div", {
75693
75698
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75694
75699
  style: normalizeStyle$1(_ctx.styleProps),
75695
- class: "uni-svg-component",
75700
+ class: "uni-svg-component inner-component",
75696
75701
  innerHTML: _ctx.svgContent
75697
75702
  }, null, 12 /* STYLE, PROPS */, _hoisted_1))
75698
75703
  }
@@ -5429,7 +5429,7 @@
5429
5429
  src: _ctx.imageSrc,
5430
5430
  style: vue.normalizeStyle(_ctx.styleProps),
5431
5431
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5432
- class: "uni-image-component",
5432
+ class: "uni-image-component inner-component",
5433
5433
  draggable: false
5434
5434
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$c))
5435
5435
  }
@@ -5463,7 +5463,7 @@
5463
5463
  return (vue.openBlock(), vue.createElementBlock("div", {
5464
5464
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5465
5465
  style: vue.normalizeStyle(_ctx.styleProps),
5466
- class: "uni-shape-component",
5466
+ class: "uni-shape-component inner-component",
5467
5467
  draggable: false
5468
5468
  }, null, 4 /* STYLE */))
5469
5469
  }
@@ -13235,7 +13235,7 @@
13235
13235
  return (vue.openBlock(), vue.createElementBlock("div", {
13236
13236
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
13237
13237
  style: vue.normalizeStyle(_ctx.styleProps),
13238
- class: "uni-background-component",
13238
+ class: "uni-background-component inner-component",
13239
13239
  draggable: false
13240
13240
  }, null, 4 /* STYLE */))
13241
13241
  }
@@ -13317,7 +13317,7 @@
13317
13317
  return (vue.openBlock(), vue.createElementBlock("div", {
13318
13318
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
13319
13319
  style: vue.normalizeStyle(_ctx.styleProps),
13320
- class: "uni-video-component"
13320
+ class: "uni-video-component inner-component"
13321
13321
  }, [
13322
13322
  (_ctx.isIFrame)
13323
13323
  ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -16174,7 +16174,7 @@
16174
16174
  return (vue.openBlock(), vue.createElementBlock("div", {
16175
16175
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
16176
16176
  style: vue.normalizeStyle({ ..._ctx.styleProps, transform: _ctx.size }),
16177
- class: "uni-calendar-component"
16177
+ class: "uni-calendar-component inner-component"
16178
16178
  }, [
16179
16179
  vue.createVNode(_component_Calendar, {
16180
16180
  ref: "calendarRef",
@@ -22362,8 +22362,8 @@
22362
22362
  return "1rem";
22363
22363
  }
22364
22364
  });
22365
- const labels = vue.computed(() => {
22366
- if (props.language == 'en') {
22365
+ const getLabels = (language) => {
22366
+ if (language == 'en') {
22367
22367
  return {
22368
22368
  days: 'Days',
22369
22369
  hours: 'Hours',
@@ -22379,13 +22379,18 @@
22379
22379
  seconds: 'ที่สอง'
22380
22380
  };
22381
22381
  }
22382
+ };
22383
+ const labels = vue.ref(getLabels(props.language));
22384
+ // 监听 props.language 的变化
22385
+ vue.watch(() => props.language, (newLanguage) => {
22386
+ labels.value = getLabels(newLanguage);
22382
22387
  });
22383
22388
  return {
22384
22389
  styleProps,
22385
22390
  handleClick,
22386
22391
  labelSize,
22387
22392
  countdownSize,
22388
- labels
22393
+ computedLabels: labels
22389
22394
  };
22390
22395
  }
22391
22396
  });
@@ -22396,7 +22401,7 @@
22396
22401
  return (vue.openBlock(), vue.createElementBlock("div", {
22397
22402
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22398
22403
  style: vue.normalizeStyle(_ctx.styleProps),
22399
- class: "uni-countdown-component"
22404
+ class: "uni-countdown-component inner-component"
22400
22405
  }, [
22401
22406
  vue.createVNode(_component_Countdown, {
22402
22407
  deadline: _ctx.deadline,
@@ -22406,7 +22411,7 @@
22406
22411
  secondFlipBackgroundColor: _ctx.mainFlipBackgroundColor,
22407
22412
  labelColor: _ctx.labelColor,
22408
22413
  showLabels: _ctx.showLabels,
22409
- labels: _ctx.labels,
22414
+ labels: _ctx.computedLabels,
22410
22415
  language: _ctx.language,
22411
22416
  countdownSize: _ctx.countdownSize,
22412
22417
  flipAnimation: _ctx.flipAnimation,
@@ -22471,7 +22476,7 @@
22471
22476
  return (vue.openBlock(), vue.createElementBlock("div", {
22472
22477
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
22473
22478
  style: vue.normalizeStyle(_ctx.styleProps),
22474
- class: "uni-map-component",
22479
+ class: "uni-map-component inner-component",
22475
22480
  innerHTML: _ctx.iframeHtml
22476
22481
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$5))
22477
22482
  }
@@ -26136,7 +26141,7 @@
26136
26141
  return (vue.openBlock(), vue.createElementBlock("button", {
26137
26142
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26138
26143
  style: vue.normalizeStyle(_ctx.styleProps),
26139
- class: "uni-call-component"
26144
+ class: "uni-call-component inner-component"
26140
26145
  }, [
26141
26146
  vue.createVNode(_component_font_awesome_icon, { icon: ['fas', 'square-phone'] }),
26142
26147
  vue.createTextVNode("   "),
@@ -26222,7 +26227,7 @@
26222
26227
 
26223
26228
  return (vue.openBlock(), vue.createElementBlock("div", {
26224
26229
  style: vue.normalizeStyle(_ctx.styleProps),
26225
- class: "like-button uni-like-component",
26230
+ class: "like-button uni-like-component inner-component",
26226
26231
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.toggleLike && _ctx.toggleLike(...args)))
26227
26232
  }, [
26228
26233
  vue.createVNode(_component_font_awesome_icon, {
@@ -26574,7 +26579,7 @@
26574
26579
  return (vue.openBlock(), vue.createElementBlock("div", {
26575
26580
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
26576
26581
  style: vue.normalizeStyle(_ctx.styleProps),
26577
- class: "uni-effect-component"
26582
+ class: "uni-effect-component inner-component"
26578
26583
  }, [
26579
26584
  vue.createVNode(_component_Particles, {
26580
26585
  id: "tsparticles",
@@ -53759,7 +53764,7 @@ summary tabindex target title type usemap value width wmode wrap`;
53759
53764
  return (vue.openBlock(), vue.createElementBlock("div", {
53760
53765
  onClick: _cache[5] || (_cache[5] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
53761
53766
  style: vue.normalizeStyle(_ctx.styleProps),
53762
- class: "uni-register-form-component"
53767
+ class: "uni-register-form-component inner-component"
53763
53768
  }, [
53764
53769
  _hoisted_1$3,
53765
53770
  vue.createVNode(_component_a_form, {
@@ -75419,7 +75424,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75419
75424
  loop: _ctx.loopC,
75420
75425
  delay: _ctx.delayC,
75421
75426
  ref: "lottieAnimation",
75422
- class: "uni-lotties-component"
75427
+ class: "uni-lotties-component inner-component"
75423
75428
  }, null, 8 /* PROPS */, ["onClick", "style", "animationLink", "loop", "delay"]))
75424
75429
  }
75425
75430
 
@@ -75470,7 +75475,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75470
75475
 
75471
75476
  return (vue.openBlock(), vue.createElementBlock("div", {
75472
75477
  style: vue.normalizeStyle(_ctx.styleProps),
75473
- class: "uni-swiper-component"
75478
+ class: "uni-swiper-component inner-component"
75474
75479
  }, [
75475
75480
  vue.createVNode(_component_swiper, {
75476
75481
  class: "swiper-warp",
@@ -75535,7 +75540,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75535
75540
  return (vue.openBlock(), vue.createElementBlock("button", {
75536
75541
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75537
75542
  style: vue.normalizeStyle(_ctx.styleProps),
75538
- class: "uni-button-component"
75543
+ class: "uni-button-component inner-component"
75539
75544
  }, [
75540
75545
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
75541
75546
  vue.createTextVNode(vue.toDisplayString(_ctx.buttonText), 1 /* TEXT */)
@@ -75586,7 +75591,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75586
75591
  return (vue.openBlock(), vue.createElementBlock("div", {
75587
75592
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75588
75593
  style: vue.normalizeStyle(_ctx.styleProps),
75589
- class: "uni-build-up-component"
75594
+ class: "uni-build-up-component inner-component"
75590
75595
  }, null, 4 /* STYLE */))
75591
75596
  }
75592
75597
 
@@ -75699,7 +75704,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75699
75704
  return (vue.openBlock(), vue.createElementBlock("div", {
75700
75705
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
75701
75706
  style: vue.normalizeStyle(_ctx.styleProps),
75702
- class: "uni-svg-component",
75707
+ class: "uni-svg-component inner-component",
75703
75708
  innerHTML: _ctx.svgContent
75704
75709
  }, null, 12 /* STYLE, PROPS */, _hoisted_1))
75705
75710
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.216",
3
+ "version": "1.0.218",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",