unika-components 1.0.13 → 1.0.15
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.
- package/dist/src/components/UniCalendar/Calendar.vue.d.ts +85 -0
- package/dist/src/components/UniCalendar/utils.d.ts +4 -4
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +193 -104
- package/dist/unika-components.esm.js +2662 -93
- package/dist/unika-components.umd.js +2673 -106
- package/package.json +2 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
title: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
dayTexts: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => string[];
|
|
9
|
+
};
|
|
10
|
+
monthTexts: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => string[];
|
|
13
|
+
};
|
|
14
|
+
format: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
start: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
weddingDate: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
cp: string;
|
|
28
|
+
isFirstMonth: import("vue").ComputedRef<boolean>;
|
|
29
|
+
currentYearAndMonth: import("vue").ComputedRef<string>;
|
|
30
|
+
itemDays: import("vue").ComputedRef<{
|
|
31
|
+
currentMonth: number;
|
|
32
|
+
day: number;
|
|
33
|
+
date: string;
|
|
34
|
+
month: string;
|
|
35
|
+
days: string;
|
|
36
|
+
valueOf: number;
|
|
37
|
+
}[]>;
|
|
38
|
+
getDayItem: (i: number, j: number) => {
|
|
39
|
+
currentMonth: number;
|
|
40
|
+
day: number;
|
|
41
|
+
date: string;
|
|
42
|
+
month: string;
|
|
43
|
+
days: string;
|
|
44
|
+
valueOf: number;
|
|
45
|
+
};
|
|
46
|
+
getClass: (db: {
|
|
47
|
+
currentMonth: number;
|
|
48
|
+
date: string | number;
|
|
49
|
+
}) => string;
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change-month"[], "change-month", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
title: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
dayTexts: {
|
|
56
|
+
type: ArrayConstructor;
|
|
57
|
+
default: () => string[];
|
|
58
|
+
};
|
|
59
|
+
monthTexts: {
|
|
60
|
+
type: ArrayConstructor;
|
|
61
|
+
default: () => string[];
|
|
62
|
+
};
|
|
63
|
+
format: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
start: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
weddingDate: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
76
|
+
"onChange-month"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
title: string;
|
|
79
|
+
dayTexts: unknown[];
|
|
80
|
+
monthTexts: unknown[];
|
|
81
|
+
format: string;
|
|
82
|
+
start: string;
|
|
83
|
+
weddingDate: string;
|
|
84
|
+
}, {}>;
|
|
85
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const getItemDays: (now: Date | undefined, formatType: any) => {
|
|
2
2
|
currentMonth: number;
|
|
3
3
|
day: number;
|
|
4
|
-
date:
|
|
5
|
-
month:
|
|
6
|
-
days:
|
|
7
|
-
valueOf:
|
|
4
|
+
date: string;
|
|
5
|
+
month: string;
|
|
6
|
+
days: string;
|
|
7
|
+
valueOf: number;
|
|
8
8
|
}[];
|
|
9
9
|
export { getItemDays };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import SwiperPage from './components/SwiperPage';
|
|
|
7
7
|
import UniBackground from './components/UniBackground';
|
|
8
8
|
import UniMusic from './components/UniMusic';
|
|
9
9
|
import UniVideo from './components/UniVideo';
|
|
10
|
+
import UniCalendar from './components/UniCalendar';
|
|
10
11
|
declare const install: (app: App) => void;
|
|
11
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, install };
|
|
12
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, install };
|
|
12
13
|
declare const _default: {
|
|
13
14
|
install: (app: App<any>) => void;
|
|
14
15
|
};
|
|
@@ -1,3 +1,102 @@
|
|
|
1
|
+
|
|
2
|
+
#audio {
|
|
3
|
+
position: absolute;
|
|
4
|
+
right: 10px;
|
|
5
|
+
top: 10px;
|
|
6
|
+
z-index: 103;
|
|
7
|
+
width: 30px;
|
|
8
|
+
height: 30px;
|
|
9
|
+
display: -webkit-box;
|
|
10
|
+
display: -ms-flexbox;
|
|
11
|
+
display: flex;
|
|
12
|
+
-webkit-box-align: center;
|
|
13
|
+
-ms-flex-align: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
#audio .audio {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
display: -webkit-box;
|
|
20
|
+
display: -ms-flexbox;
|
|
21
|
+
display: flex;
|
|
22
|
+
-webkit-box-align: center;
|
|
23
|
+
-ms-flex-align: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
-webkit-box-pack: center;
|
|
26
|
+
-ms-flex-pack: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
color: #fff;
|
|
29
|
+
background: #666;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
will-change: transform;
|
|
33
|
+
}
|
|
34
|
+
#audio .audio .music-icon {
|
|
35
|
+
display: block;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
#audio .icon-cancel {
|
|
40
|
+
position: absolute;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
padding: 14px 0;
|
|
46
|
+
}
|
|
47
|
+
#audio .icon-cancel .icon-h {
|
|
48
|
+
-webkit-transform: rotate(45deg);
|
|
49
|
+
transform: rotate(45deg);
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 2px;
|
|
52
|
+
background: #fff;
|
|
53
|
+
}
|
|
54
|
+
#audio .mrotate {
|
|
55
|
+
-webkit-animation: mrotate 5s linear infinite;
|
|
56
|
+
animation: mrotate 5s linear infinite;
|
|
57
|
+
}
|
|
58
|
+
.video-play-audio {
|
|
59
|
+
position: absolute;
|
|
60
|
+
left: -9999px;
|
|
61
|
+
top: -9999px;
|
|
62
|
+
width: 0;
|
|
63
|
+
height: 0;
|
|
64
|
+
z-index: -1;
|
|
65
|
+
opacity: 1;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.music-img {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: inline-block;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.uni-music-component {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* 无限旋转 */
|
|
80
|
+
@keyframes mrotate {
|
|
81
|
+
from {
|
|
82
|
+
transform: rotate(0deg);
|
|
83
|
+
}
|
|
84
|
+
to {
|
|
85
|
+
transform: rotate(360deg);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@-webkit-keyframes mrotate {
|
|
89
|
+
from {
|
|
90
|
+
-webkit-transform: rotate(0deg);
|
|
91
|
+
}
|
|
92
|
+
to {
|
|
93
|
+
-webkit-transform: rotate(360deg);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.uni-image-component {
|
|
98
|
+
max-width: 100%;
|
|
99
|
+
}
|
|
1
100
|
|
|
2
101
|
h2.uni-text-component, p.uni-text-component {
|
|
3
102
|
margin-bottom: 0;
|
|
@@ -119,104 +218,13 @@ body, html {
|
|
|
119
218
|
background-position: center;
|
|
120
219
|
opacity: 0.1;
|
|
121
220
|
}
|
|
122
|
-
|
|
123
|
-
.uni-image-component {
|
|
124
|
-
max-width: 100%;
|
|
125
|
-
}
|
|
126
221
|
|
|
127
|
-
|
|
128
|
-
position: absolute;
|
|
129
|
-
right: 10px;
|
|
130
|
-
top: 10px;
|
|
131
|
-
z-index: 103;
|
|
132
|
-
width: 30px;
|
|
133
|
-
height: 30px;
|
|
134
|
-
display: -webkit-box;
|
|
135
|
-
display: -ms-flexbox;
|
|
136
|
-
display: flex;
|
|
137
|
-
-webkit-box-align: center;
|
|
138
|
-
-ms-flex-align: center;
|
|
139
|
-
align-items: center;
|
|
140
|
-
}
|
|
141
|
-
#audio .audio {
|
|
142
|
-
width: 100%;
|
|
143
|
-
height: 100%;
|
|
144
|
-
display: -webkit-box;
|
|
145
|
-
display: -ms-flexbox;
|
|
146
|
-
display: flex;
|
|
147
|
-
-webkit-box-align: center;
|
|
148
|
-
-ms-flex-align: center;
|
|
149
|
-
align-items: center;
|
|
150
|
-
-webkit-box-pack: center;
|
|
151
|
-
-ms-flex-pack: center;
|
|
152
|
-
justify-content: center;
|
|
153
|
-
color: #fff;
|
|
154
|
-
background: #666;
|
|
155
|
-
border-radius: 50%;
|
|
156
|
-
overflow: hidden;
|
|
157
|
-
will-change: transform;
|
|
158
|
-
}
|
|
159
|
-
#audio .audio .music-icon {
|
|
160
|
-
display: block;
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 100%;
|
|
163
|
-
}
|
|
164
|
-
#audio .icon-cancel {
|
|
165
|
-
position: absolute;
|
|
166
|
-
width: 100%;
|
|
167
|
-
height: 100%;
|
|
168
|
-
border-radius: 50%;
|
|
169
|
-
overflow: hidden;
|
|
170
|
-
padding: 14px 0;
|
|
171
|
-
}
|
|
172
|
-
#audio .icon-cancel .icon-h {
|
|
173
|
-
-webkit-transform: rotate(45deg);
|
|
174
|
-
transform: rotate(45deg);
|
|
175
|
-
width: 100%;
|
|
176
|
-
height: 2px;
|
|
177
|
-
background: #fff;
|
|
178
|
-
}
|
|
179
|
-
#audio .mrotate {
|
|
180
|
-
-webkit-animation: mrotate 5s linear infinite;
|
|
181
|
-
animation: mrotate 5s linear infinite;
|
|
182
|
-
}
|
|
183
|
-
.video-play-audio {
|
|
222
|
+
.slot-number {
|
|
184
223
|
position: absolute;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
z-index: -1;
|
|
190
|
-
opacity: 1;
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.music-img {
|
|
195
|
-
position: relative;
|
|
196
|
-
display: inline-block;
|
|
197
|
-
width: 100%;
|
|
198
|
-
height: 100%;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.uni-music-component {
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/* 无限旋转 */
|
|
205
|
-
@keyframes mrotate {
|
|
206
|
-
from {
|
|
207
|
-
transform: rotate(0deg);
|
|
208
|
-
}
|
|
209
|
-
to {
|
|
210
|
-
transform: rotate(360deg);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
@-webkit-keyframes mrotate {
|
|
214
|
-
from {
|
|
215
|
-
-webkit-transform: rotate(0deg);
|
|
216
|
-
}
|
|
217
|
-
to {
|
|
218
|
-
-webkit-transform: rotate(360deg);
|
|
219
|
-
}
|
|
224
|
+
bottom: 2px;
|
|
225
|
+
left: 7px;
|
|
226
|
+
font-size: 12px;
|
|
227
|
+
color: #666
|
|
220
228
|
}
|
|
221
229
|
|
|
222
230
|
.uni-video-component {
|
|
@@ -239,14 +247,6 @@ body, html {
|
|
|
239
247
|
.play-pause-button:hover {
|
|
240
248
|
background: rgba(0, 0, 0, 0.8);
|
|
241
249
|
}
|
|
242
|
-
|
|
243
|
-
.slot-number {
|
|
244
|
-
position: absolute;
|
|
245
|
-
bottom: 2px;
|
|
246
|
-
left: 7px;
|
|
247
|
-
font-size: 12px;
|
|
248
|
-
color: #666
|
|
249
|
-
}
|
|
250
250
|
/**
|
|
251
251
|
* Swiper 6.8.4
|
|
252
252
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -794,3 +794,92 @@ button.swiper-pagination-bullet {
|
|
|
794
794
|
-webkit-backface-visibility: hidden;
|
|
795
795
|
backface-visibility: hidden;
|
|
796
796
|
}
|
|
797
|
+
|
|
798
|
+
.unika-calendar-title {
|
|
799
|
+
flex: 1;
|
|
800
|
+
margin-right: 50px;
|
|
801
|
+
white-space: nowrap;
|
|
802
|
+
overflow: hidden;
|
|
803
|
+
text-overflow: ellipsis;
|
|
804
|
+
font-size: 16px;
|
|
805
|
+
font-weight: bold;
|
|
806
|
+
color: #333;
|
|
807
|
+
}
|
|
808
|
+
.unika-calendar-header {
|
|
809
|
+
display: flex;
|
|
810
|
+
justify-content: space-between;
|
|
811
|
+
align-items: center;
|
|
812
|
+
padding: 12px 0;
|
|
813
|
+
border-bottom: 1px solid #F3F3F3;
|
|
814
|
+
user-select: none;
|
|
815
|
+
}
|
|
816
|
+
.unika-calendar-header .disabled {
|
|
817
|
+
pointer-events: none;
|
|
818
|
+
color: #f0f0f0;
|
|
819
|
+
}
|
|
820
|
+
.unika-calendar-th {
|
|
821
|
+
display: flex;
|
|
822
|
+
padding: 16px 10px;
|
|
823
|
+
}
|
|
824
|
+
.unika-calendar-th > * {
|
|
825
|
+
flex: 1;
|
|
826
|
+
padding: 0 7px;
|
|
827
|
+
font-size: 12px;
|
|
828
|
+
text-align: center;
|
|
829
|
+
color: #666;
|
|
830
|
+
}
|
|
831
|
+
.unika-calendar-th > *:not(:first-child) {
|
|
832
|
+
margin-left: 10px;
|
|
833
|
+
}
|
|
834
|
+
.unika-calendar-body {
|
|
835
|
+
background-color: #F6FAFF;
|
|
836
|
+
padding: 10px;
|
|
837
|
+
}
|
|
838
|
+
.unika-calendar-editor {
|
|
839
|
+
font-size: 14px;
|
|
840
|
+
font-weight: bold;
|
|
841
|
+
display: flex;
|
|
842
|
+
}
|
|
843
|
+
.unika-calendar-editor span {
|
|
844
|
+
display: inline-block;
|
|
845
|
+
min-width: 80px;
|
|
846
|
+
text-align: center;
|
|
847
|
+
}
|
|
848
|
+
.unika-calendar-day {
|
|
849
|
+
display: inline-block;
|
|
850
|
+
width: 24px;
|
|
851
|
+
height: 24px;
|
|
852
|
+
line-height: 24px;
|
|
853
|
+
text-align: center;
|
|
854
|
+
font-size: 14px;
|
|
855
|
+
border-radius: 50%;
|
|
856
|
+
}
|
|
857
|
+
.unika-calendar-row {
|
|
858
|
+
display: flex;
|
|
859
|
+
}
|
|
860
|
+
.unika-calendar-row:not(:last-child) {
|
|
861
|
+
margin-bottom: 10px;
|
|
862
|
+
}
|
|
863
|
+
.unika-calendar-row > * {
|
|
864
|
+
flex: 1;
|
|
865
|
+
padding: 2px;
|
|
866
|
+
height: 28px;
|
|
867
|
+
box-sizing: border-box;
|
|
868
|
+
position: relative;
|
|
869
|
+
}
|
|
870
|
+
.unika-calendar-row > *.color-grey {
|
|
871
|
+
background-color: #EBF1F9;
|
|
872
|
+
}
|
|
873
|
+
.unika-calendar-row > *.color-purple {
|
|
874
|
+
background-color: #D5C3FF;
|
|
875
|
+
}
|
|
876
|
+
.unika-calendar-row > *.color-green {
|
|
877
|
+
background-color: #AFF0C8;
|
|
878
|
+
}
|
|
879
|
+
.unika-calendar-row > *.color-today .unika-calendar-day {
|
|
880
|
+
background-color: #fff;
|
|
881
|
+
font-weight: bold;
|
|
882
|
+
}
|
|
883
|
+
.unika-calendar-row > *:not(:first-child) {
|
|
884
|
+
margin-left: 10px;
|
|
885
|
+
}
|