unika-components 1.0.13 → 1.0.14
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 +218 -129
- package/dist/unika-components.esm.js +2662 -93
- package/dist/unika-components.umd.js +2673 -106
- package/package.json +3 -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,125 +1,4 @@
|
|
|
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
|
-
|
|
14
|
-
.slide-guide {
|
|
15
|
-
position: absolute;
|
|
16
|
-
bottom: 90px;
|
|
17
|
-
left: 50%;
|
|
18
|
-
transform: translateX(-50%);
|
|
19
|
-
}
|
|
20
|
-
.slide-guide img {
|
|
21
|
-
animation: flowing 2s ease-in-out infinite;
|
|
22
|
-
width: 33px;
|
|
23
|
-
vertical-align: middle;
|
|
24
|
-
border-style: none;
|
|
25
|
-
}
|
|
26
|
-
body, html {
|
|
27
|
-
position: relative;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
margin: 0px;
|
|
31
|
-
}
|
|
32
|
-
.swiper-container {
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
.swiper-slide {
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
background-size: cover;
|
|
41
|
-
background-position: center;
|
|
42
|
-
background-repeat: no-repeat;
|
|
43
|
-
}
|
|
44
|
-
.up-arrow {
|
|
45
|
-
width: 2rem;
|
|
46
|
-
height: 2rem;
|
|
47
|
-
position: fixed;
|
|
48
|
-
bottom: 2rem;
|
|
49
|
-
left: 50%;
|
|
50
|
-
transform: translate3d(-50%, 0, 0);
|
|
51
|
-
z-index: 999;
|
|
52
|
-
background: none;
|
|
53
|
-
border: none;
|
|
54
|
-
padding: 0;
|
|
55
|
-
animation: upArrowAni 2s infinite linear;
|
|
56
|
-
}
|
|
57
|
-
.up-arrow img {
|
|
58
|
-
width: 2rem;
|
|
59
|
-
height: 2rem;
|
|
60
|
-
text-align: center;
|
|
61
|
-
line-height: 2rem;
|
|
62
|
-
color: #fff;
|
|
63
|
-
font-size: 1.5rem;
|
|
64
|
-
}
|
|
65
|
-
@keyframes upArrowAni {
|
|
66
|
-
0% {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
transform: translate3d(-50%, 30%, 0);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
30% {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
transform: translate3d(-50%, -20%, 0);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
60% {
|
|
77
|
-
opacity: 0;
|
|
78
|
-
transform: translate3d(-50%, -35%, 0);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
100% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transform: translate3d(-50%, -50%, 0);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.uni-background-component {
|
|
88
|
-
width: 100%;
|
|
89
|
-
}
|
|
90
|
-
.bg-img {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
93
|
-
object-fit: cover;
|
|
94
|
-
z-index:1;
|
|
95
|
-
}
|
|
96
|
-
.watermark {
|
|
97
|
-
height: 100%;
|
|
98
|
-
position: absolute;
|
|
99
|
-
top: 0;
|
|
100
|
-
left: 0;
|
|
101
|
-
right: 0;
|
|
102
|
-
bottom: 0;
|
|
103
|
-
}
|
|
104
|
-
.watermark-div {
|
|
105
|
-
height: 100%;
|
|
106
|
-
width:100%;
|
|
107
|
-
position:absolute;
|
|
108
|
-
z-index:99999999;
|
|
109
|
-
}
|
|
110
|
-
body:before{
|
|
111
|
-
content: '';
|
|
112
|
-
position: fixed;
|
|
113
|
-
top: 0;
|
|
114
|
-
bottom: 0;
|
|
115
|
-
left: 0;
|
|
116
|
-
right: 0;
|
|
117
|
-
z-index: -1;
|
|
118
|
-
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
119
|
-
background-position: center;
|
|
120
|
-
opacity: 0.1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
2
|
.uni-image-component {
|
|
124
3
|
max-width: 100%;
|
|
125
4
|
}
|
|
@@ -219,6 +98,135 @@ body, html {
|
|
|
219
98
|
}
|
|
220
99
|
}
|
|
221
100
|
|
|
101
|
+
.uni-background-component {
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
.bg-img {
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100%;
|
|
107
|
+
object-fit: cover;
|
|
108
|
+
z-index:1;
|
|
109
|
+
}
|
|
110
|
+
.watermark {
|
|
111
|
+
height: 100%;
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0;
|
|
114
|
+
left: 0;
|
|
115
|
+
right: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
}
|
|
118
|
+
.watermark-div {
|
|
119
|
+
height: 100%;
|
|
120
|
+
width:100%;
|
|
121
|
+
position:absolute;
|
|
122
|
+
z-index:99999999;
|
|
123
|
+
}
|
|
124
|
+
body:before{
|
|
125
|
+
content: '';
|
|
126
|
+
position: fixed;
|
|
127
|
+
top: 0;
|
|
128
|
+
bottom: 0;
|
|
129
|
+
left: 0;
|
|
130
|
+
right: 0;
|
|
131
|
+
z-index: -1;
|
|
132
|
+
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
133
|
+
background-position: center;
|
|
134
|
+
opacity: 0.1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.slide-guide {
|
|
138
|
+
position: absolute;
|
|
139
|
+
bottom: 90px;
|
|
140
|
+
left: 50%;
|
|
141
|
+
transform: translateX(-50%);
|
|
142
|
+
}
|
|
143
|
+
.slide-guide img {
|
|
144
|
+
animation: flowing 2s ease-in-out infinite;
|
|
145
|
+
width: 33px;
|
|
146
|
+
vertical-align: middle;
|
|
147
|
+
border-style: none;
|
|
148
|
+
}
|
|
149
|
+
body, html {
|
|
150
|
+
position: relative;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 100%;
|
|
153
|
+
margin: 0px;
|
|
154
|
+
}
|
|
155
|
+
.swiper-container {
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
}
|
|
159
|
+
.swiper-slide {
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
background-size: cover;
|
|
164
|
+
background-position: center;
|
|
165
|
+
background-repeat: no-repeat;
|
|
166
|
+
}
|
|
167
|
+
.up-arrow {
|
|
168
|
+
width: 2rem;
|
|
169
|
+
height: 2rem;
|
|
170
|
+
position: fixed;
|
|
171
|
+
bottom: 2rem;
|
|
172
|
+
left: 50%;
|
|
173
|
+
transform: translate3d(-50%, 0, 0);
|
|
174
|
+
z-index: 999;
|
|
175
|
+
background: none;
|
|
176
|
+
border: none;
|
|
177
|
+
padding: 0;
|
|
178
|
+
animation: upArrowAni 2s infinite linear;
|
|
179
|
+
}
|
|
180
|
+
.up-arrow img {
|
|
181
|
+
width: 2rem;
|
|
182
|
+
height: 2rem;
|
|
183
|
+
text-align: center;
|
|
184
|
+
line-height: 2rem;
|
|
185
|
+
color: #fff;
|
|
186
|
+
font-size: 1.5rem;
|
|
187
|
+
}
|
|
188
|
+
@keyframes upArrowAni {
|
|
189
|
+
0% {
|
|
190
|
+
opacity: 0;
|
|
191
|
+
transform: translate3d(-50%, 30%, 0);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
30% {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
transform: translate3d(-50%, -20%, 0);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
60% {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
transform: translate3d(-50%, -35%, 0);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
100% {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
transform: translate3d(-50%, -50%, 0);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
h2.uni-text-component, p.uni-text-component {
|
|
211
|
+
margin-bottom: 0;
|
|
212
|
+
}
|
|
213
|
+
button.uni-text-component {
|
|
214
|
+
padding: 5px 10px;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
}
|
|
217
|
+
.uni-text-component {
|
|
218
|
+
box-sizing: border-box;
|
|
219
|
+
white-space: pre-wrap;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.slot-number {
|
|
223
|
+
position: absolute;
|
|
224
|
+
bottom: 2px;
|
|
225
|
+
left: 7px;
|
|
226
|
+
font-size: 12px;
|
|
227
|
+
color: #666
|
|
228
|
+
}
|
|
229
|
+
|
|
222
230
|
.uni-video-component {
|
|
223
231
|
position: relative;
|
|
224
232
|
text-align: center;
|
|
@@ -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
|
+
}
|