unika-components 1.0.242 → 1.0.243

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.
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<{
18
18
  attendanceNumber: number;
19
19
  attendanceTime: never[];
20
20
  };
21
- onSubmit: () => void;
22
21
  resetFields: (newValues?: import("ant-design-vue/es/form/useForm").Props | undefined) => void;
22
+ onSubmit: () => void;
23
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
24
  [x: string]: any;
25
25
  }>>, {
@@ -1,3 +1,62 @@
1
+
2
+
3
+ .uni-calendar-component {
4
+
5
+ }
6
+ .slot-number {
7
+ position: absolute;
8
+ bottom: 2px;
9
+ left: 7px;
10
+ font-size: 12px;
11
+ color: #666
12
+ }
13
+
14
+ .uni-image-component {
15
+ max-width: 100%;
16
+ }
17
+
18
+ .like-button {
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ cursor: pointer;
23
+ }
24
+
25
+ .icon-heart {
26
+ font-size: 24px;
27
+ color: #e74c3c;
28
+ }
29
+
30
+ .liked {
31
+ color: #f00; /* 更改颜色以示已赞 */
32
+ }
33
+
34
+ .like-count {
35
+ margin-top: 4px;
36
+ font-size: 16px;
37
+ color: #333;
38
+ }
39
+
40
+ .uni-video-component {
41
+ position: relative;
42
+ text-align: center;
43
+ }
44
+ .play-pause-button {
45
+ position: absolute;
46
+ top: 50%;
47
+ left: 50%;
48
+ transform: translate(-50%, -50%);
49
+ cursor: pointer;
50
+ font-size: 2rem;
51
+ color: #fff;
52
+ background: rgba(0, 0, 0, 0.6);
53
+ border-radius: 50%;
54
+ padding: 10px;
55
+ transition: background 0.3s;
56
+ }
57
+ .play-pause-button:hover {
58
+ background: rgba(0, 0, 0, 0.8);
59
+ }
1
60
 
2
61
  h2.uni-text-component, p.uni-text-component {
3
62
  margin-bottom: 0;
@@ -11,10 +70,6 @@ button.uni-text-component {
11
70
  white-space: pre-wrap;
12
71
  }
13
72
 
14
- .uni-image-component {
15
- max-width: 100%;
16
- }
17
-
18
73
  .slide-guide {
19
74
  position: absolute;
20
75
  bottom: 90px;
@@ -88,60 +143,31 @@ body, html {
88
143
  }
89
144
  }
90
145
 
91
- .uni-video-component {
92
- position: relative;
93
- text-align: center;
94
- }
95
- .play-pause-button {
96
- position: absolute;
97
- top: 50%;
98
- left: 50%;
99
- transform: translate(-50%, -50%);
100
- cursor: pointer;
101
- font-size: 2rem;
102
- color: #fff;
103
- background: rgba(0, 0, 0, 0.6);
104
- border-radius: 50%;
105
- padding: 10px;
106
- transition: background 0.3s;
107
- }
108
- .play-pause-button:hover {
109
- background: rgba(0, 0, 0, 0.8);
110
- }
111
-
112
- .like-button {
113
- display: flex;
114
- flex-direction: column;
115
- align-items: center;
116
- cursor: pointer;
146
+ .effect {
147
+ width: 100%;
148
+ height: 100%;
117
149
  }
150
+
151
+ .uni-svg-component {
152
+ display: inline-block;
153
+ }
118
154
 
119
- .icon-heart {
120
- font-size: 24px;
121
- color: #e74c3c;
155
+ .swiper-warp {
156
+ width: 100%;
157
+ height: 100%;
122
158
  }
123
159
 
124
- .liked {
125
- color: #f00; /* 更改颜色以示已赞 */
160
+ .swiper-slide-component {
161
+ text-align: center;
126
162
  }
127
163
 
128
- .like-count {
129
- margin-top: 4px;
130
- font-size: 16px;
131
- color: #333;
164
+ .swiper-slide img {
165
+ max-width: 100%;
166
+ max-height: 100%;
132
167
  }
133
168
 
134
-
135
- .uni-calendar-component {
136
-
137
- }
138
- .slot-number {
139
- position: absolute;
140
- bottom: 2px;
141
- left: 7px;
142
- font-size: 12px;
143
- color: #666
144
- }
169
+ .uni-build-up-component {
170
+ }
145
171
 
146
172
  .ant-input-number {
147
173
  box-sizing: border-box;
@@ -177,32 +203,6 @@ body, html {
177
203
  margin-bottom: 0px;
178
204
  vertical-align: top;
179
205
  }
180
-
181
- .effect {
182
- width: 100%;
183
- height: 100%;
184
- }
185
-
186
- .uni-build-up-component {
187
- }
188
-
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
-
203
- .uni-svg-component {
204
- display: inline-block;
205
- }
206
206
  /**
207
207
  * Swiper 6.8.4
208
208
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -751,247 +751,60 @@ 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);
754
+ .unika-calendar-box {
755
+ position: relative;
756
+ width: 325px !important;
757
+ min-height: 325px !important;
758
+ height: auto !important;
761
759
  }
762
-
763
- .flip-clock {
764
- text-align: center;
765
- perspective: 600px;
766
- margin: 0 auto;
760
+ .unika-calendar-title {
761
+ font-size: 25px;
762
+ padding-bottom: 4px;
767
763
  }
768
-
769
- .flip-clock *,
770
- .flip-clock *:before,
771
- .flip-clock *:after {
772
- box-sizing: border-box;
764
+ .unika-calendar-header {
765
+ display: -webkit-box;
766
+ display: -ms-flexbox;
767
+ display: flex;
768
+ -webkit-box-pack: justify;
769
+ -ms-flex-pack: justify;
770
+ justify-content: space-between;
771
+ -webkit-box-align: end;
772
+ -ms-flex-align: end;
773
+ align-items: flex-end;
774
+ line-height: 1;
775
+ padding: 0 47px 20px;
773
776
  }
774
-
775
- .flip-clock__piece {
776
- display: inline-block;
777
- margin: 0 0.2vw;
777
+ .unika-calendar-header .disabled {
778
+ pointer-events: none;
779
+ color: #f0f0f0;
778
780
  }
779
-
780
- @media (min-width: 1000px) {
781
- .flip-clock__piece {
782
- margin: 0 5px;
783
- }
781
+ .unika-calendar-th {
782
+ display: -webkit-box;
783
+ display: -ms-flexbox;
784
+ display: flex;
785
+ -webkit-box-pack: start;
786
+ -ms-flex-pack: start;
787
+ justify-content: flex-start;
788
+ height: 25px;
789
+ line-height: 25px;
790
+ padding: 0 10px;
791
+ border-radius: 13px
784
792
  }
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);
793
+ .unika-calendar-th > * {
794
+ width: 14.2%;
795
+ text-align: center;
796
+ color: #fff;
797
+ font-size: 15px;
791
798
  }
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
+ .unika-calendar-th > *:not(:first-child) {
800
+ margin-left: 10px;
799
801
  }
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
-
941
- .unika-calendar-box {
942
- position: relative;
943
- width: 325px !important;
944
- min-height: 325px !important;
945
- height: auto !important;
946
- }
947
- .unika-calendar-title {
948
- font-size: 25px;
949
- padding-bottom: 4px;
950
- }
951
- .unika-calendar-header {
952
- display: -webkit-box;
953
- display: -ms-flexbox;
954
- display: flex;
955
- -webkit-box-pack: justify;
956
- -ms-flex-pack: justify;
957
- justify-content: space-between;
958
- -webkit-box-align: end;
959
- -ms-flex-align: end;
960
- align-items: flex-end;
961
- line-height: 1;
962
- padding: 0 47px 20px;
963
- }
964
- .unika-calendar-header .disabled {
965
- pointer-events: none;
966
- color: #f0f0f0;
967
- }
968
- .unika-calendar-th {
969
- display: -webkit-box;
970
- display: -ms-flexbox;
971
- display: flex;
972
- -webkit-box-pack: start;
973
- -ms-flex-pack: start;
974
- justify-content: flex-start;
975
- height: 25px;
976
- line-height: 25px;
977
- padding: 0 10px;
978
- border-radius: 13px
979
- }
980
- .unika-calendar-th > * {
981
- width: 14.2%;
982
- text-align: center;
983
- color: #fff;
984
- font-size: 15px;
985
- }
986
- .unika-calendar-th > *:not(:first-child) {
987
- margin-left: 10px;
988
- }
989
- .unika-calendar-body {
990
- padding: 0;
991
- margin: 0;
992
- font-size: 0;
993
- padding: 5px 10px 0;
994
- text-align: left;
802
+ .unika-calendar-body {
803
+ padding: 0;
804
+ margin: 0;
805
+ font-size: 0;
806
+ padding: 5px 10px 0;
807
+ text-align: left;
995
808
  }
996
809
  .unika-calendar-editor {
997
810
  font-size: 25px;
@@ -1197,3 +1010,190 @@ button.swiper-pagination-bullet {
1197
1010
  padding: 0 0px;
1198
1011
  border-bottom: 1px solid
1199
1012
  }
1013
+
1014
+
1015
+ .no-animation__card {
1016
+ font-weight: 500;
1017
+ font-size: var(--countdown-size, 2rem);
1018
+ line-height: 1.5;
1019
+ display: block;
1020
+ color: var(--main-color, #EC685C);
1021
+ }
1022
+
1023
+ .flip-clock {
1024
+ text-align: center;
1025
+ perspective: 600px;
1026
+ margin: 0 auto;
1027
+ }
1028
+
1029
+ .flip-clock *,
1030
+ .flip-clock *:before,
1031
+ .flip-clock *:after {
1032
+ box-sizing: border-box;
1033
+ }
1034
+
1035
+ .flip-clock__piece {
1036
+ display: inline-block;
1037
+ margin: 0 0.2vw;
1038
+ }
1039
+
1040
+ @media (min-width: 1000px) {
1041
+ .flip-clock__piece {
1042
+ margin: 0 5px;
1043
+ }
1044
+ }
1045
+
1046
+ .flip-clock__slot {
1047
+ font-size: var(--label-size, 1rem);
1048
+ line-height: 1.5;
1049
+ display: block;
1050
+ color: var(--label-color, #222222);
1051
+ }
1052
+
1053
+ .flip-card {
1054
+ display: block;
1055
+ position: relative;
1056
+ padding-bottom: 0.72em; /* halfHeight */
1057
+ font-size: var(--countdown-size, 2.25rem);
1058
+ line-height: 0.95;
1059
+ }
1060
+
1061
+ @media (min-width: 1000px) {
1062
+ .flip-clock__slot {
1063
+ font-size: 1.2rem;
1064
+ }
1065
+
1066
+ .flip-card {
1067
+ font-size: 3rem;
1068
+ }
1069
+ }
1070
+
1071
+ .flip-card__top,
1072
+ .flip-card__bottom,
1073
+ .flip-card__back-bottom,
1074
+ .flip-card__back::before,
1075
+ .flip-card__back::after{
1076
+ display: block;
1077
+ height: 0.72em; /* halfHeight */
1078
+ color: var(--main-color, #EC685C);
1079
+ background: var(--main-flip-background-color, #222222);
1080
+ padding: 0.23em 0.15em 0.4em;
1081
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1082
+ backface-visibility: hidden;
1083
+ -webkit-backface-visibility: hidden;
1084
+ transform-style: preserve-3d;
1085
+ width: 2.1em;
1086
+ }
1087
+
1088
+ .flip-card__top-4digits,
1089
+ .flip-card__bottom-4digits,
1090
+ .flip-card__back-bottom-4digits,
1091
+ .flip-card__back-4digits::before,
1092
+ .flip-card__back-4digits::after {
1093
+ display: block;
1094
+ height: 0.72em; /* halfHeight */
1095
+ color: var(--main-color, #EC685C);
1096
+ background: var(--main-flip-background-color, #222222);
1097
+ padding: 0.23em 0.15em 0.4em;
1098
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1099
+ backface-visibility: hidden;
1100
+ -webkit-backface-visibility: hidden;
1101
+ transform-style: preserve-3d;
1102
+ width: 2.65em;
1103
+ }
1104
+
1105
+ .flip-card__bottom,
1106
+ .flip-card__back-bottom,
1107
+ .flip-card__bottom-4digits,
1108
+ .flip-card__back-bottom-4digits {
1109
+ color: var(--second-flip-color, #EC685C);
1110
+ position: absolute;
1111
+ top: 50%;
1112
+ left: 0;
1113
+ border-top: solid 1px var(--second-flip-background-color, #000);
1114
+ background: var(--second-flip-background-color, #393939);
1115
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1116
+ pointer-events: none;
1117
+ overflow: hidden;
1118
+ z-index: 2;
1119
+ }
1120
+
1121
+ .flip-card__back-bottom,
1122
+ .flip-card__back-bottom-4digits {
1123
+ z-index: 1;
1124
+ }
1125
+
1126
+ .flip-card__bottom::after,
1127
+ .flip-card__back-bottom::after,
1128
+ .flip-card__bottom-4digits::after,
1129
+ .flip-card__back-bottom-4digits::after {
1130
+ display: block;
1131
+ margin-top: -0.72em; /* Negative halfHeight */
1132
+ }
1133
+ .flip-card__back::before,
1134
+ .flip-card__bottom::after,
1135
+ .flip-card__back-bottom::after,
1136
+ .flip-card__back-4digits::before,
1137
+ .flip-card__bottom-4digits::after,
1138
+ .flip-card__back-bottom-4digits::after {
1139
+ content: attr(data-value);
1140
+ }
1141
+
1142
+ .flip-card__back,
1143
+ .flip-card__back-4digits {
1144
+ position: absolute;
1145
+ top: 0;
1146
+ height: 100%;
1147
+ left: 0%;
1148
+ pointer-events: none;
1149
+ }
1150
+ .flip-card__back::before,
1151
+ .flip-card__back-4digits::before {
1152
+ position: relative;
1153
+ overflow: hidden;
1154
+ z-index: -1;
1155
+ }
1156
+
1157
+ .flip .flip-card__back::before,
1158
+ .flip .flip-card__back-4digits::before {
1159
+ z-index: 1;
1160
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1161
+ animation-fill-mode: both;
1162
+ transform-origin: center bottom;
1163
+ }
1164
+
1165
+ .flip .flip-card__bottom,
1166
+ .flip .flip-card__bottom-4digits {
1167
+ transform-origin: center top;
1168
+ animation-fill-mode: both;
1169
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1170
+ }
1171
+ @keyframes flipTop {
1172
+ 0% {
1173
+ transform: rotateX(0deg);
1174
+ z-index: 2;
1175
+ }
1176
+ 0%, 99% {
1177
+ opacity: 1;
1178
+ }
1179
+ 100% {
1180
+ transform: rotateX(-90deg);
1181
+ opacity: 0;
1182
+ }
1183
+ }
1184
+
1185
+ @keyframes flipBottom {
1186
+ 0%, 50% {
1187
+ z-index: -1;
1188
+ transform: rotateX(90deg);
1189
+ opacity: 0;
1190
+ }
1191
+ 51% {
1192
+ opacity: 1;
1193
+ }
1194
+ 100% {
1195
+ opacity: 1;
1196
+ transform: rotateX(0deg);
1197
+ z-index: 5;
1198
+ }
1199
+ }
@@ -22212,6 +22212,14 @@ var script$c = {
22212
22212
  if (diff.value !== 0) {
22213
22213
  show.value = true;
22214
22214
  }
22215
+ const rootStyle = document.documentElement.style;
22216
+ rootStyle.setProperty('--main-color', props.mainColor);
22217
+ rootStyle.setProperty('--second-flip-color', props.secondFlipColor || props.mainColor);
22218
+ rootStyle.setProperty('--main-flip-background-color', props.mainFlipBackgroundColor);
22219
+ rootStyle.setProperty('--second-flip-background-color', props.secondFlipBackgroundColor);
22220
+ rootStyle.setProperty('--label-color', props.labelColor);
22221
+ rootStyle.setProperty('--countdown-size', props.countdownSize);
22222
+ rootStyle.setProperty('--label-size', props.labelSize);
22215
22223
  });
22216
22224
 
22217
22225
  onBeforeMount(() => {
@@ -53938,22 +53946,6 @@ var script$6 = defineComponent({
53938
53946
  name: 'uni-register-form',
53939
53947
  props: {
53940
53948
  ...defaultProps$5,
53941
- // attendanceTimeList: {
53942
- // type: Array as PropType<SelectOption[] | []>,
53943
- // default: () => [ {value: 'Morning'}, {value: 'Noon'}, {value: 'Evening'}]
53944
- // },
53945
- // isPhoneNumber: {
53946
- // type: Boolean,
53947
- // default: true
53948
- // },
53949
- // transform: {
53950
- // type: String,
53951
- // default: 'rotate(0deg)'
53952
- // },
53953
- // opacity: {
53954
- // type: Number,
53955
- // default: 1 // explosions side bottom single falling
53956
- // }
53957
53949
  },
53958
53950
  components: {
53959
53951
  'a-form': Form$1,
@@ -54025,16 +54017,17 @@ var script$6 = defineComponent({
54025
54017
  fetch('/api/present/' + props.publishContentId, options).then(response => {
54026
54018
  if (!response.ok) {
54027
54019
  throw new Error('Network response was not ok');
54020
+ // console.log('Post {resent Network response was not ok')
54021
+ }
54022
+ return response.json();
54023
+ }).then(data => {
54024
+ if (data.error === 0) {
54025
+ alert('submit present successful!');
54028
54026
  }
54029
54027
  else {
54030
- console.log(response.json());
54031
- console.log(response);
54032
- alert('提交成功');
54028
+ alert('submit present failed!');
54033
54029
  }
54034
- // console.log(response.text())
54035
- // return response.text()
54036
- })
54037
- .catch(error => {
54030
+ }).catch(error => {
54038
54031
  console.error('Error fetching present:', error);
54039
54032
  return '';
54040
54033
  });
@@ -54051,8 +54044,8 @@ var script$6 = defineComponent({
54051
54044
  wrapperCol,
54052
54045
  validateInfos,
54053
54046
  modelRef,
54054
- onSubmit,
54055
- resetFields
54047
+ resetFields,
54048
+ onSubmit
54056
54049
  };
54057
54050
  }
54058
54051
  });
@@ -22219,6 +22219,14 @@
22219
22219
  if (diff.value !== 0) {
22220
22220
  show.value = true;
22221
22221
  }
22222
+ const rootStyle = document.documentElement.style;
22223
+ rootStyle.setProperty('--main-color', props.mainColor);
22224
+ rootStyle.setProperty('--second-flip-color', props.secondFlipColor || props.mainColor);
22225
+ rootStyle.setProperty('--main-flip-background-color', props.mainFlipBackgroundColor);
22226
+ rootStyle.setProperty('--second-flip-background-color', props.secondFlipBackgroundColor);
22227
+ rootStyle.setProperty('--label-color', props.labelColor);
22228
+ rootStyle.setProperty('--countdown-size', props.countdownSize);
22229
+ rootStyle.setProperty('--label-size', props.labelSize);
22222
22230
  });
22223
22231
 
22224
22232
  vue.onBeforeMount(() => {
@@ -53945,22 +53953,6 @@ summary tabindex target title type usemap value width wmode wrap`;
53945
53953
  name: 'uni-register-form',
53946
53954
  props: {
53947
53955
  ...defaultProps$5,
53948
- // attendanceTimeList: {
53949
- // type: Array as PropType<SelectOption[] | []>,
53950
- // default: () => [ {value: 'Morning'}, {value: 'Noon'}, {value: 'Evening'}]
53951
- // },
53952
- // isPhoneNumber: {
53953
- // type: Boolean,
53954
- // default: true
53955
- // },
53956
- // transform: {
53957
- // type: String,
53958
- // default: 'rotate(0deg)'
53959
- // },
53960
- // opacity: {
53961
- // type: Number,
53962
- // default: 1 // explosions side bottom single falling
53963
- // }
53964
53956
  },
53965
53957
  components: {
53966
53958
  'a-form': Form$1,
@@ -54032,16 +54024,17 @@ summary tabindex target title type usemap value width wmode wrap`;
54032
54024
  fetch('/api/present/' + props.publishContentId, options).then(response => {
54033
54025
  if (!response.ok) {
54034
54026
  throw new Error('Network response was not ok');
54027
+ // console.log('Post {resent Network response was not ok')
54028
+ }
54029
+ return response.json();
54030
+ }).then(data => {
54031
+ if (data.error === 0) {
54032
+ alert('submit present successful!');
54035
54033
  }
54036
54034
  else {
54037
- console.log(response.json());
54038
- console.log(response);
54039
- alert('提交成功');
54035
+ alert('submit present failed!');
54040
54036
  }
54041
- // console.log(response.text())
54042
- // return response.text()
54043
- })
54044
- .catch(error => {
54037
+ }).catch(error => {
54045
54038
  console.error('Error fetching present:', error);
54046
54039
  return '';
54047
54040
  });
@@ -54058,8 +54051,8 @@ summary tabindex target title type usemap value width wmode wrap`;
54058
54051
  wrapperCol,
54059
54052
  validateInfos,
54060
54053
  modelRef,
54061
- onSubmit,
54062
- resetFields
54054
+ resetFields,
54055
+ onSubmit
54063
54056
  };
54064
54057
  }
54065
54058
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.242",
3
+ "version": "1.0.243",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",