zartui 0.1.21 → 0.1.22
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/README.md +20 -20
- package/changelog.generated.md +29 -0
- package/es/area/style/index.js +4 -0
- package/es/area/style/less.js +4 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.js +41 -27
- package/es/avatar/index.less +40 -11
- package/es/avatar/local.less +1 -1
- package/es/button/index.less +206 -206
- package/es/calendar/index.less +250 -250
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/style/less.js +1 -1
- package/es/cell/index.less +103 -103
- package/es/cell-group/index.less +22 -22
- package/es/checkbox/index.less +89 -89
- package/es/checkbox-group/index.less +8 -8
- package/es/col/index.less +20 -20
- package/es/datetime-picker/style/index.js +4 -0
- package/es/datetime-picker/style/less.js +4 -0
- package/es/dialog/index.less +125 -125
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/style/less.js +1 -1
- package/es/empty/Developing.js +1643 -0
- package/es/empty/Error.js +484 -0
- package/es/empty/NotFound.js +645 -0
- package/es/empty/NotRight.js +395 -0
- package/es/empty/Search.js +336 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +105 -0
- package/es/empty/index.less +33 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.less +172 -172
- package/es/icon/index.less +10 -10
- package/es/icon/local.less +1 -1
- package/es/image/index.less +47 -47
- package/es/image-preview/index.less +103 -103
- package/es/image-preview/style/index.js +1 -1
- package/es/image-preview/style/less.js +1 -1
- package/es/index.js +5 -3
- package/es/info/index.less +29 -29
- package/es/loading/index.less +103 -103
- package/es/locale/lang/zh-CN.js +16 -0
- package/es/mixins/bind-event.js +2 -2
- package/es/mixins/checkbox.js +2 -2
- package/es/mixins/click-outside.js +2 -2
- package/es/mixins/slots.js +3 -3
- package/es/nav-bar/index.less +74 -74
- package/es/number-keyboard/index.less +142 -142
- package/es/overlay/index.less +11 -11
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +80 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/pdf-viewer/style/index.js +1 -1
- package/es/pdf-viewer/style/less.js +1 -1
- package/es/picker/PickerColumn.js +5 -6
- package/es/picker/index.js +34 -5
- package/es/picker/index.less +151 -151
- package/es/picker/shared.js +4 -0
- package/es/picker/style/index.js +4 -0
- package/es/picker/style/less.js +4 -0
- package/es/popup/index.less +137 -137
- package/es/popup/style/index.js +1 -1
- package/es/popup/style/less.js +1 -1
- package/es/radio/index.less +86 -86
- package/es/radio-group/index.less +8 -8
- package/es/rate/index.css +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/index.less +47 -47
- package/es/row/index.less +42 -42
- package/es/slider/index.less +94 -94
- package/es/step/index.less +139 -139
- package/es/stepper/index.less +130 -130
- package/es/steps/index.less +21 -21
- package/es/sticky/index.less +11 -11
- package/es/style/animation.less +139 -139
- package/es/style/base.less +11 -11
- package/es/style/clearfix.less +5 -5
- package/es/style/ellipsis.less +13 -13
- package/es/style/hairline.less +47 -47
- package/es/style/halfPxBorder.less +15 -15
- package/es/style/mixins/clearfix.less +7 -7
- package/es/style/mixins/ellipsis.less +15 -15
- package/es/style/mixins/hairline.less +39 -39
- package/es/style/normalize.less +38 -38
- package/es/style/reset.less +171 -171
- package/es/style/var.less +936 -919
- package/es/swipe/index.less +56 -56
- package/es/swipe-cell/index.less +29 -29
- package/es/swipe-item/index.less +8 -8
- package/es/switch/index.less +56 -56
- package/es/switch/shared.js +2 -2
- package/es/switch-cell/index.less +15 -15
- package/es/tab/index.less +17 -17
- package/es/tabs/index.less +153 -153
- package/es/tag/index.less +99 -99
- package/es/toast/index.less +75 -75
- package/es/toast/style/index.js +1 -1
- package/es/toast/style/less.js +1 -1
- package/es/uploader/index.less +163 -163
- package/es/uploader/style/index.js +1 -1
- package/es/uploader/style/less.js +1 -1
- package/es/utils/create/bem.js +7 -7
- package/es/utils/create/component.js +2 -2
- package/es/utils/dom/raf.js +2 -2
- package/es/utils/dom/reset-scroll.js +3 -3
- package/es/utils/index.js +29 -29
- package/es/utils/router.js +2 -2
- package/lib/7893e51cf0a4877dac80.worker.js +10 -0
- package/lib/area/style/index.js +4 -0
- package/lib/area/style/less.js +4 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.js +42 -28
- package/lib/avatar/index.less +40 -11
- package/lib/avatar/local.less +1 -1
- package/lib/be09b519a460e229fd8d.worker.js +2527 -0
- package/lib/button/index.less +206 -206
- package/lib/calendar/index.less +250 -250
- package/lib/calendar/style/index.js +1 -1
- package/lib/calendar/style/less.js +1 -1
- package/lib/cell/index.less +103 -103
- package/lib/cell-group/index.less +22 -22
- package/lib/checkbox/index.less +89 -89
- package/lib/checkbox-group/index.less +8 -8
- package/lib/col/index.less +20 -20
- package/lib/datetime-picker/style/index.js +4 -0
- package/lib/datetime-picker/style/less.js +4 -0
- package/lib/dialog/index.less +125 -125
- package/lib/dialog/style/index.js +1 -1
- package/lib/dialog/style/less.js +1 -1
- package/lib/empty/Developing.js +1648 -0
- package/lib/empty/Error.js +489 -0
- package/lib/empty/NotFound.js +650 -0
- package/lib/empty/NotRight.js +400 -0
- package/lib/empty/Search.js +341 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +119 -0
- package/lib/empty/index.less +33 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.less +172 -172
- package/lib/icon/index.less +10 -10
- package/lib/icon/local.less +1 -1
- package/lib/image/index.less +47 -47
- package/lib/image-preview/index.less +103 -103
- package/lib/image-preview/style/index.js +1 -1
- package/lib/image-preview/style/less.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +10 -2
- package/lib/index.less +5 -3
- package/lib/info/index.less +29 -29
- package/lib/loading/index.less +103 -103
- package/lib/locale/lang/zh-CN.js +16 -0
- package/lib/mixins/bind-event.js +2 -2
- package/lib/mixins/checkbox.js +2 -2
- package/lib/mixins/click-outside.js +2 -2
- package/lib/mixins/slots.js +3 -3
- package/lib/nav-bar/index.less +74 -74
- package/lib/number-keyboard/index.less +142 -142
- package/lib/overlay/index.less +11 -11
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +93 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/pdf-viewer/style/index.js +1 -1
- package/lib/pdf-viewer/style/less.js +1 -1
- package/lib/picker/PickerColumn.js +5 -6
- package/lib/picker/index.js +36 -6
- package/lib/picker/index.less +151 -151
- package/lib/picker/shared.js +4 -0
- package/lib/picker/style/index.js +4 -0
- package/lib/picker/style/less.js +4 -0
- package/lib/popup/index.less +137 -137
- package/lib/popup/style/index.js +1 -1
- package/lib/popup/style/less.js +1 -1
- package/lib/radio/index.less +86 -86
- package/lib/radio-group/index.less +8 -8
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/index.less +47 -47
- package/lib/row/index.less +42 -42
- package/lib/slider/index.less +94 -94
- package/lib/step/index.less +139 -139
- package/lib/stepper/index.less +130 -130
- package/lib/steps/index.less +21 -21
- package/lib/sticky/index.less +11 -11
- package/lib/style/animation.less +139 -139
- package/lib/style/base.less +11 -11
- package/lib/style/clearfix.less +5 -5
- package/lib/style/ellipsis.less +13 -13
- package/lib/style/hairline.less +47 -47
- package/lib/style/halfPxBorder.less +15 -15
- package/lib/style/mixins/clearfix.less +7 -7
- package/lib/style/mixins/ellipsis.less +15 -15
- package/lib/style/mixins/hairline.less +39 -39
- package/lib/style/normalize.less +38 -38
- package/lib/style/reset.less +171 -171
- package/lib/style/var.less +936 -919
- package/lib/swipe/index.less +56 -56
- package/lib/swipe-cell/index.less +29 -29
- package/lib/swipe-item/index.less +8 -8
- package/lib/switch/index.less +56 -56
- package/lib/switch/shared.js +2 -2
- package/lib/switch-cell/index.less +15 -15
- package/lib/tab/index.less +17 -17
- package/lib/tabs/index.less +153 -153
- package/lib/tag/index.less +99 -99
- package/lib/toast/index.less +75 -75
- package/lib/toast/style/index.js +1 -1
- package/lib/toast/style/less.js +1 -1
- package/lib/uploader/index.less +163 -163
- package/lib/uploader/style/index.js +1 -1
- package/lib/uploader/style/less.js +1 -1
- package/lib/utils/create/bem.js +7 -7
- package/lib/utils/create/component.js +2 -2
- package/lib/utils/dom/raf.js +2 -2
- package/lib/utils/dom/reset-scroll.js +3 -3
- package/lib/utils/index.js +29 -29
- package/lib/utils/router.js +2 -2
- package/lib/zart.js +26508 -55081
- package/lib/zart.min.js +5 -5
- package/package.json +74 -74
- package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
- package/lib/b7cf90b4775181215df7.worker.js +0 -10
package/es/calendar/index.less
CHANGED
|
@@ -1,250 +1,250 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
@import '../style/mixins/hairline';
|
|
3
|
-
|
|
4
|
-
.zt-calendar {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
height: 100%;
|
|
8
|
-
background-color: @calendar-background-color;
|
|
9
|
-
|
|
10
|
-
&__popup {
|
|
11
|
-
&.zt-popup--top,
|
|
12
|
-
&.zt-popup--bottom {
|
|
13
|
-
height: @calendar-popup-height;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.zt-popup--left,
|
|
17
|
-
&.zt-popup--right {
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.zt-popup__close-icon {
|
|
22
|
-
top: 11px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__header {
|
|
27
|
-
flex-shrink: 0;
|
|
28
|
-
box-shadow: @calendar-header-box-shadow;
|
|
29
|
-
margin-bottom: @calendar-header-shadow-height; /*让box shadow 显示出来*/
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&__header-title {
|
|
33
|
-
height: @calendar-header-title-height;
|
|
34
|
-
font-weight: @base-font-weight;
|
|
35
|
-
line-height: @calendar-header-title-height;
|
|
36
|
-
text-align: left;
|
|
37
|
-
padding-left: @padding-md;
|
|
38
|
-
position: relative;
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&__header-title::before {
|
|
43
|
-
position: absolute;
|
|
44
|
-
content: '';
|
|
45
|
-
top: 14px;
|
|
46
|
-
left: 0;
|
|
47
|
-
width: 4px;
|
|
48
|
-
height: 16px;
|
|
49
|
-
background: #0091fa;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__header-title::after {
|
|
53
|
-
position: absolute;
|
|
54
|
-
top:44px;
|
|
55
|
-
left: 0px;
|
|
56
|
-
content: '';
|
|
57
|
-
.hairline-bottom();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__header-subtitle {
|
|
61
|
-
height: @calendar-header-title-height;
|
|
62
|
-
font-weight: @plain-font-weight;
|
|
63
|
-
line-height: @calendar-header-title-height;
|
|
64
|
-
text-align: center;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&__month-title {
|
|
68
|
-
height: @calendar-header-title-height;
|
|
69
|
-
font-weight: @plain-font-weight;
|
|
70
|
-
line-height: @calendar-header-title-height;
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&__header-title {
|
|
75
|
-
font-size: @calendar-header-title-font-size;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&__header-subtitle {
|
|
79
|
-
font-size: @calendar-header-subtitle-font-size;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__month-title {
|
|
83
|
-
font-size: @calendar-month-title-font-size;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&__weekdays {
|
|
87
|
-
display: flex;
|
|
88
|
-
background-color: rgba(0, 0, 0, 0.02);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&__weekday {
|
|
92
|
-
flex: 1;
|
|
93
|
-
font-size: @calendar-weekdays-font-size;
|
|
94
|
-
line-height: @calendar-weekdays-height;
|
|
95
|
-
font-weight: @base-font-weight;
|
|
96
|
-
text-align: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&__body {
|
|
100
|
-
flex: 1;
|
|
101
|
-
overflow: auto;
|
|
102
|
-
-webkit-overflow-scrolling: touch;
|
|
103
|
-
background-color: @calendar-background-color;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&__days {
|
|
107
|
-
position: relative;
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-wrap: wrap;
|
|
110
|
-
user-select: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&__month-mark {
|
|
114
|
-
position: absolute;
|
|
115
|
-
top: 50%;
|
|
116
|
-
left: 50%;
|
|
117
|
-
z-index: 0;
|
|
118
|
-
color: @calendar-month-mark-color;
|
|
119
|
-
font-size: @calendar-month-mark-font-size;
|
|
120
|
-
transform: translate(-50%, -50%);
|
|
121
|
-
pointer-events: none;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__day,
|
|
125
|
-
&__selected-day {
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
text-align: center;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&__day {
|
|
133
|
-
position: relative;
|
|
134
|
-
width: 14.285%;
|
|
135
|
-
height: @calendar-day-height;
|
|
136
|
-
font-size: @calendar-day-font-size;
|
|
137
|
-
font-weight: @plain-font-weight;
|
|
138
|
-
cursor: pointer;
|
|
139
|
-
outline: none;
|
|
140
|
-
|
|
141
|
-
&--end,
|
|
142
|
-
&--start,
|
|
143
|
-
&--start-end,
|
|
144
|
-
&--multiple-middle,
|
|
145
|
-
&--multiple-selected {
|
|
146
|
-
font-weight: @base-font-weight;
|
|
147
|
-
color: @calendar-range-edge-color;
|
|
148
|
-
background-color: @calendar-range-edge-background-color;
|
|
149
|
-
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@media (pointer: coarse) {
|
|
153
|
-
/* FIX iOS 上 两个格子间有间距造成了一个像素的白线 */
|
|
154
|
-
&--end,
|
|
155
|
-
&--multiple-middle {
|
|
156
|
-
margin-left: -1px;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&--start {
|
|
161
|
-
font-weight: @base-font-weight;
|
|
162
|
-
border-radius: @calendar-day-height-half 0 0 @calendar-day-height-half;
|
|
163
|
-
border-right: none;
|
|
164
|
-
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&--end {
|
|
168
|
-
font-weight: @base-font-weight;
|
|
169
|
-
border-radius: 0 @calendar-day-height-half @calendar-day-height-half 0;
|
|
170
|
-
border-left: none;
|
|
171
|
-
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&--start-end,
|
|
175
|
-
&--multiple-selected {
|
|
176
|
-
font-weight: @base-font-weight;
|
|
177
|
-
border-radius: @calendar-day-height-half;
|
|
178
|
-
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&--middle {
|
|
182
|
-
color: @calendar-range-middle-color;
|
|
183
|
-
|
|
184
|
-
&::after {
|
|
185
|
-
position: absolute;
|
|
186
|
-
top: 0;
|
|
187
|
-
right: 0;
|
|
188
|
-
bottom: 0;
|
|
189
|
-
left: 0;
|
|
190
|
-
color: @blue;
|
|
191
|
-
background-color: currentColor;
|
|
192
|
-
opacity: @calendar-range-middle-background-opacity;
|
|
193
|
-
content: '';
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&--disabled {
|
|
198
|
-
color: @calendar-day-disabled-color;
|
|
199
|
-
cursor: default;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&__top-info,
|
|
204
|
-
&__bottom-info {
|
|
205
|
-
position: absolute;
|
|
206
|
-
right: 0;
|
|
207
|
-
left: 0;
|
|
208
|
-
font-size: @calendar-info-font-size;
|
|
209
|
-
line-height: @calendar-info-line-height;
|
|
210
|
-
|
|
211
|
-
@media (max-width: 350px) {
|
|
212
|
-
font-size: 9px;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&__top-info {
|
|
217
|
-
top: 6px;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&__bottom-info {
|
|
221
|
-
display: none;
|
|
222
|
-
bottom: 6px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&__selected-day {
|
|
226
|
-
font-weight: @base-font-weight;
|
|
227
|
-
width: @calendar-selected-day-size;
|
|
228
|
-
height: @calendar-selected-day-size;
|
|
229
|
-
color: @calendar-selected-day-color;
|
|
230
|
-
background-color: @calendar-selected-day-background-color;
|
|
231
|
-
border-radius: calc(@calendar-selected-day-size / 2);
|
|
232
|
-
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&__footer {
|
|
236
|
-
flex-shrink: 0;
|
|
237
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
238
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
239
|
-
|
|
240
|
-
&--unfit {
|
|
241
|
-
padding-bottom: 0;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&__confirm {
|
|
246
|
-
border-radius: 0px;
|
|
247
|
-
//height: @calendar-confirm-button-height;
|
|
248
|
-
//margin: @calendar-confirm-button-margin;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
@import '../style/mixins/hairline';
|
|
3
|
+
|
|
4
|
+
.zt-calendar {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
background-color: @calendar-background-color;
|
|
9
|
+
|
|
10
|
+
&__popup {
|
|
11
|
+
&.zt-popup--top,
|
|
12
|
+
&.zt-popup--bottom {
|
|
13
|
+
height: @calendar-popup-height;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.zt-popup--left,
|
|
17
|
+
&.zt-popup--right {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.zt-popup__close-icon {
|
|
22
|
+
top: 11px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__header {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
box-shadow: @calendar-header-box-shadow;
|
|
29
|
+
margin-bottom: @calendar-header-shadow-height; /*让box shadow 显示出来*/
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__header-title {
|
|
33
|
+
height: @calendar-header-title-height;
|
|
34
|
+
font-weight: @base-font-weight;
|
|
35
|
+
line-height: @calendar-header-title-height;
|
|
36
|
+
text-align: left;
|
|
37
|
+
padding-left: @padding-md;
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__header-title::before {
|
|
43
|
+
position: absolute;
|
|
44
|
+
content: '';
|
|
45
|
+
top: 14px;
|
|
46
|
+
left: 0;
|
|
47
|
+
width: 4px;
|
|
48
|
+
height: 16px;
|
|
49
|
+
background: #0091fa;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__header-title::after {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top:44px;
|
|
55
|
+
left: 0px;
|
|
56
|
+
content: '';
|
|
57
|
+
.hairline-bottom();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__header-subtitle {
|
|
61
|
+
height: @calendar-header-title-height;
|
|
62
|
+
font-weight: @plain-font-weight;
|
|
63
|
+
line-height: @calendar-header-title-height;
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__month-title {
|
|
68
|
+
height: @calendar-header-title-height;
|
|
69
|
+
font-weight: @plain-font-weight;
|
|
70
|
+
line-height: @calendar-header-title-height;
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__header-title {
|
|
75
|
+
font-size: @calendar-header-title-font-size;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__header-subtitle {
|
|
79
|
+
font-size: @calendar-header-subtitle-font-size;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__month-title {
|
|
83
|
+
font-size: @calendar-month-title-font-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__weekdays {
|
|
87
|
+
display: flex;
|
|
88
|
+
background-color: rgba(0, 0, 0, 0.02);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__weekday {
|
|
92
|
+
flex: 1;
|
|
93
|
+
font-size: @calendar-weekdays-font-size;
|
|
94
|
+
line-height: @calendar-weekdays-height;
|
|
95
|
+
font-weight: @base-font-weight;
|
|
96
|
+
text-align: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__body {
|
|
100
|
+
flex: 1;
|
|
101
|
+
overflow: auto;
|
|
102
|
+
-webkit-overflow-scrolling: touch;
|
|
103
|
+
background-color: @calendar-background-color;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__days {
|
|
107
|
+
position: relative;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
user-select: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&__month-mark {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 50%;
|
|
116
|
+
left: 50%;
|
|
117
|
+
z-index: 0;
|
|
118
|
+
color: @calendar-month-mark-color;
|
|
119
|
+
font-size: @calendar-month-mark-font-size;
|
|
120
|
+
transform: translate(-50%, -50%);
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__day,
|
|
125
|
+
&__selected-day {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
text-align: center;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__day {
|
|
133
|
+
position: relative;
|
|
134
|
+
width: 14.285%;
|
|
135
|
+
height: @calendar-day-height;
|
|
136
|
+
font-size: @calendar-day-font-size;
|
|
137
|
+
font-weight: @plain-font-weight;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
outline: none;
|
|
140
|
+
|
|
141
|
+
&--end,
|
|
142
|
+
&--start,
|
|
143
|
+
&--start-end,
|
|
144
|
+
&--multiple-middle,
|
|
145
|
+
&--multiple-selected {
|
|
146
|
+
font-weight: @base-font-weight;
|
|
147
|
+
color: @calendar-range-edge-color;
|
|
148
|
+
background-color: @calendar-range-edge-background-color;
|
|
149
|
+
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (pointer: coarse) {
|
|
153
|
+
/* FIX iOS 上 两个格子间有间距造成了一个像素的白线 */
|
|
154
|
+
&--end,
|
|
155
|
+
&--multiple-middle {
|
|
156
|
+
margin-left: -1px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--start {
|
|
161
|
+
font-weight: @base-font-weight;
|
|
162
|
+
border-radius: @calendar-day-height-half 0 0 @calendar-day-height-half;
|
|
163
|
+
border-right: none;
|
|
164
|
+
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--end {
|
|
168
|
+
font-weight: @base-font-weight;
|
|
169
|
+
border-radius: 0 @calendar-day-height-half @calendar-day-height-half 0;
|
|
170
|
+
border-left: none;
|
|
171
|
+
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&--start-end,
|
|
175
|
+
&--multiple-selected {
|
|
176
|
+
font-weight: @base-font-weight;
|
|
177
|
+
border-radius: @calendar-day-height-half;
|
|
178
|
+
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&--middle {
|
|
182
|
+
color: @calendar-range-middle-color;
|
|
183
|
+
|
|
184
|
+
&::after {
|
|
185
|
+
position: absolute;
|
|
186
|
+
top: 0;
|
|
187
|
+
right: 0;
|
|
188
|
+
bottom: 0;
|
|
189
|
+
left: 0;
|
|
190
|
+
color: @blue;
|
|
191
|
+
background-color: currentColor;
|
|
192
|
+
opacity: @calendar-range-middle-background-opacity;
|
|
193
|
+
content: '';
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&--disabled {
|
|
198
|
+
color: @calendar-day-disabled-color;
|
|
199
|
+
cursor: default;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&__top-info,
|
|
204
|
+
&__bottom-info {
|
|
205
|
+
position: absolute;
|
|
206
|
+
right: 0;
|
|
207
|
+
left: 0;
|
|
208
|
+
font-size: @calendar-info-font-size;
|
|
209
|
+
line-height: @calendar-info-line-height;
|
|
210
|
+
|
|
211
|
+
@media (max-width: 350px) {
|
|
212
|
+
font-size: 9px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&__top-info {
|
|
217
|
+
top: 6px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&__bottom-info {
|
|
221
|
+
display: none;
|
|
222
|
+
bottom: 6px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&__selected-day {
|
|
226
|
+
font-weight: @base-font-weight;
|
|
227
|
+
width: @calendar-selected-day-size;
|
|
228
|
+
height: @calendar-selected-day-size;
|
|
229
|
+
color: @calendar-selected-day-color;
|
|
230
|
+
background-color: @calendar-selected-day-background-color;
|
|
231
|
+
border-radius: calc(@calendar-selected-day-size / 2);
|
|
232
|
+
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&__footer {
|
|
236
|
+
flex-shrink: 0;
|
|
237
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
238
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
239
|
+
|
|
240
|
+
&--unfit {
|
|
241
|
+
padding-bottom: 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__confirm {
|
|
246
|
+
border-radius: 0px;
|
|
247
|
+
//height: @calendar-confirm-button-height;
|
|
248
|
+
//margin: @calendar-confirm-button-margin;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../style/base.css';
|
|
2
2
|
import '../../loading/index.css';
|
|
3
|
+
import '../../overlay/index.css';
|
|
3
4
|
import '../../info/index.css';
|
|
4
5
|
import '../../icon/index.css';
|
|
5
6
|
import '../../button/index.css';
|
|
6
|
-
import '../../overlay/index.css';
|
|
7
7
|
import '../../popup/index.css';
|
|
8
8
|
import '../../toast/index.css';
|
|
9
9
|
import '../index.css';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../style/base.less';
|
|
2
2
|
import '../../loading/index.less';
|
|
3
|
+
import '../../overlay/index.less';
|
|
3
4
|
import '../../info/index.less';
|
|
4
5
|
import '../../icon/index.less';
|
|
5
6
|
import '../../button/index.less';
|
|
6
|
-
import '../../overlay/index.less';
|
|
7
7
|
import '../../popup/index.less';
|
|
8
8
|
import '../../toast/index.less';
|
|
9
9
|
import '../index.less';
|