zartui 2.0.75 → 2.0.77
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/es/calendar/components/Month.js +12 -11
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/index.less +11 -1
- package/es/index.js +1 -1
- package/lib/calendar/components/Month.js +12 -11
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +1 -1
- package/lib/calendar/index.less +11 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/zart.js +2412 -1472
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
|
@@ -248,16 +248,15 @@ export default createComponent({
|
|
|
248
248
|
return this.getRangeDayType(day);
|
|
249
249
|
}
|
|
250
250
|
},
|
|
251
|
-
getBottomInfo: function getBottomInfo(type) {
|
|
252
|
-
if (this.type === 'range') {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
251
|
+
getBottomInfo: function getBottomInfo(type) {// 目前选择日期区间时,不需要底部展示开始与结束提示
|
|
252
|
+
// if (this.type === 'range') {
|
|
253
|
+
// if (type === 'start' || type === 'end') {
|
|
254
|
+
// return t(type);
|
|
255
|
+
// }
|
|
256
|
+
// if (type === 'start-end') {
|
|
257
|
+
// return t('startEnd');
|
|
258
|
+
// }
|
|
259
|
+
// }
|
|
261
260
|
},
|
|
262
261
|
getDayStyle: function getDayStyle(type, index, text) {
|
|
263
262
|
var style = {
|
|
@@ -320,7 +319,9 @@ export default createComponent({
|
|
|
320
319
|
if (item.topInfo || slot) {
|
|
321
320
|
return h("div", {
|
|
322
321
|
"class": bem('top-info')
|
|
323
|
-
}, [
|
|
322
|
+
}, [h("div", {
|
|
323
|
+
"class": bem('top-info-content')
|
|
324
|
+
}, [slot ? slot(item) : item.topInfo])]);
|
|
324
325
|
}
|
|
325
326
|
},
|
|
326
327
|
genBottomInfo: function genBottomInfo(item) {
|
package/es/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center;padding:0 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-calendar__header-subtitle--img{width:16px;height:16px}.zt2-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt2-calendar__header-subtitle--opt:active{border-radius:50%;background-color:rgba(45,75,115,.1);opacity:.7}.zt2-calendar__header-subtitle--right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.zt2-calendar__header-subtitle--unenable{opacity:.2}.zt2-calendar__header-subtitle-text{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:4px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled,.zt2-calendar__day--preview{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{
|
|
1
|
+
.zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center;padding:0 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-calendar__header-subtitle--img{width:16px;height:16px}.zt2-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt2-calendar__header-subtitle--opt:active{border-radius:50%;background-color:rgba(45,75,115,.1);opacity:.7}.zt2-calendar__header-subtitle--right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.zt2-calendar__header-subtitle--unenable{opacity:.2}.zt2-calendar__header-subtitle-text{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:4px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end .zt2-calendar__top-info-content,.zt2-calendar__day--multiple-middle .zt2-calendar__top-info-content,.zt2-calendar__day--multiple-selected .zt2-calendar__top-info-content,.zt2-calendar__day--start .zt2-calendar__top-info-content,.zt2-calendar__day--start-end .zt2-calendar__top-info-content{width:-webkit-max-content;width:max-content;margin:auto;padding:0 4px;background:rgba(255,255,255,.2);border-radius:8px;opacity:.8}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled,.zt2-calendar__day--preview{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;font-weight:400;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{bottom:6px;opacity:.4}.zt2-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__footer{box-sizing:content-box;-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex;padding:8px 16px 8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-calendar__footer--unfit{padding-bottom:0}
|
package/es/calendar/index.js
CHANGED
|
@@ -565,7 +565,6 @@ export default createComponent({
|
|
|
565
565
|
"lazyRender": this.lazyRender,
|
|
566
566
|
"currentDate": this.currentDate,
|
|
567
567
|
"showSubtitle": this.showSubtitle,
|
|
568
|
-
"showWeekDays": this.showWeekDays,
|
|
569
568
|
"allowSameDay": this.allowSameDay,
|
|
570
569
|
"showMonthTitle": showMonthTitle,
|
|
571
570
|
"firstDayOfWeek": this.dayOffset,
|
|
@@ -645,6 +644,7 @@ export default createComponent({
|
|
|
645
644
|
"subtitle": this.subtitle,
|
|
646
645
|
"showSubtitle": this.showSubtitle,
|
|
647
646
|
"firstDayOfWeek": this.dayOffset,
|
|
647
|
+
"showWeekDays": this.showWeekDays,
|
|
648
648
|
"yearPreEnable": this.yearPreEnable,
|
|
649
649
|
"monthPreEnable": this.monthPreEnable,
|
|
650
650
|
"yearNextEnable": this.yearNextEnable,
|
package/es/calendar/index.less
CHANGED
|
@@ -188,6 +188,15 @@
|
|
|
188
188
|
color: @calendar-range-edge-color;
|
|
189
189
|
background-color: @calendar-range-edge-background-color;
|
|
190
190
|
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
191
|
+
|
|
192
|
+
.@{base-prefix}-calendar__top-info-content {
|
|
193
|
+
width: max-content;
|
|
194
|
+
margin: auto;
|
|
195
|
+
padding: 0 @padding-base;
|
|
196
|
+
background: rgba(255, 255, 255, 0.2);
|
|
197
|
+
border-radius: 8px;
|
|
198
|
+
opacity: 0.8;
|
|
199
|
+
}
|
|
191
200
|
}
|
|
192
201
|
|
|
193
202
|
@media (pointer: coarse) {
|
|
@@ -248,6 +257,7 @@
|
|
|
248
257
|
right: 0;
|
|
249
258
|
left: 0;
|
|
250
259
|
font-size: @calendar-info-font-size;
|
|
260
|
+
font-weight: @plain-font-weight;
|
|
251
261
|
line-height: @calendar-info-line-height;
|
|
252
262
|
|
|
253
263
|
@media (max-width: 350px) {
|
|
@@ -260,8 +270,8 @@
|
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
&__bottom-info {
|
|
263
|
-
display: none;
|
|
264
273
|
bottom: 6px;
|
|
274
|
+
opacity: 0.4;
|
|
265
275
|
}
|
|
266
276
|
|
|
267
277
|
&__selected-day {
|
package/es/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import Tag from './tag';
|
|
|
74
74
|
import Timeline from './timeline';
|
|
75
75
|
import Toast from './toast';
|
|
76
76
|
import Uploader from './uploader';
|
|
77
|
-
var version = '2.0.
|
|
77
|
+
var version = '2.0.76';
|
|
78
78
|
|
|
79
79
|
function install(Vue) {
|
|
80
80
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
|
|
@@ -257,16 +257,15 @@ var _default = createComponent({
|
|
|
257
257
|
return this.getRangeDayType(day);
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
|
-
getBottomInfo: function getBottomInfo(type) {
|
|
261
|
-
if (this.type === 'range') {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
260
|
+
getBottomInfo: function getBottomInfo(type) {// 目前选择日期区间时,不需要底部展示开始与结束提示
|
|
261
|
+
// if (this.type === 'range') {
|
|
262
|
+
// if (type === 'start' || type === 'end') {
|
|
263
|
+
// return t(type);
|
|
264
|
+
// }
|
|
265
|
+
// if (type === 'start-end') {
|
|
266
|
+
// return t('startEnd');
|
|
267
|
+
// }
|
|
268
|
+
// }
|
|
270
269
|
},
|
|
271
270
|
getDayStyle: function getDayStyle(type, index, text) {
|
|
272
271
|
var style = {
|
|
@@ -329,7 +328,9 @@ var _default = createComponent({
|
|
|
329
328
|
if (item.topInfo || slot) {
|
|
330
329
|
return h("div", {
|
|
331
330
|
"class": (0, _utils2.bem)('top-info')
|
|
332
|
-
}, [
|
|
331
|
+
}, [h("div", {
|
|
332
|
+
"class": (0, _utils2.bem)('top-info-content')
|
|
333
|
+
}, [slot ? slot(item) : item.topInfo])]);
|
|
333
334
|
}
|
|
334
335
|
},
|
|
335
336
|
genBottomInfo: function genBottomInfo(item) {
|
package/lib/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center;padding:0 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-calendar__header-subtitle--img{width:16px;height:16px}.zt2-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt2-calendar__header-subtitle--opt:active{border-radius:50%;background-color:rgba(45,75,115,.1);opacity:.7}.zt2-calendar__header-subtitle--right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.zt2-calendar__header-subtitle--unenable{opacity:.2}.zt2-calendar__header-subtitle-text{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:4px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled,.zt2-calendar__day--preview{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{
|
|
1
|
+
.zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center;padding:0 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-calendar__header-subtitle--img{width:16px;height:16px}.zt2-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt2-calendar__header-subtitle--opt:active{border-radius:50%;background-color:rgba(45,75,115,.1);opacity:.7}.zt2-calendar__header-subtitle--right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.zt2-calendar__header-subtitle--unenable{opacity:.2}.zt2-calendar__header-subtitle-text{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:4px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end .zt2-calendar__top-info-content,.zt2-calendar__day--multiple-middle .zt2-calendar__top-info-content,.zt2-calendar__day--multiple-selected .zt2-calendar__top-info-content,.zt2-calendar__day--start .zt2-calendar__top-info-content,.zt2-calendar__day--start-end .zt2-calendar__top-info-content{width:-webkit-max-content;width:max-content;margin:auto;padding:0 4px;background:rgba(255,255,255,.2);border-radius:8px;opacity:.8}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled,.zt2-calendar__day--preview{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;font-weight:400;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{bottom:6px;opacity:.4}.zt2-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__footer{box-sizing:content-box;-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex;padding:8px 16px 8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-calendar__footer--unfit{padding-bottom:0}
|
package/lib/calendar/index.js
CHANGED
|
@@ -582,7 +582,6 @@ var _default = (0, _utils.createComponent)({
|
|
|
582
582
|
"lazyRender": this.lazyRender,
|
|
583
583
|
"currentDate": this.currentDate,
|
|
584
584
|
"showSubtitle": this.showSubtitle,
|
|
585
|
-
"showWeekDays": this.showWeekDays,
|
|
586
585
|
"allowSameDay": this.allowSameDay,
|
|
587
586
|
"showMonthTitle": showMonthTitle,
|
|
588
587
|
"firstDayOfWeek": this.dayOffset,
|
|
@@ -662,6 +661,7 @@ var _default = (0, _utils.createComponent)({
|
|
|
662
661
|
"subtitle": this.subtitle,
|
|
663
662
|
"showSubtitle": this.showSubtitle,
|
|
664
663
|
"firstDayOfWeek": this.dayOffset,
|
|
664
|
+
"showWeekDays": this.showWeekDays,
|
|
665
665
|
"yearPreEnable": this.yearPreEnable,
|
|
666
666
|
"monthPreEnable": this.monthPreEnable,
|
|
667
667
|
"yearNextEnable": this.yearNextEnable,
|
package/lib/calendar/index.less
CHANGED
|
@@ -188,6 +188,15 @@
|
|
|
188
188
|
color: @calendar-range-edge-color;
|
|
189
189
|
background-color: @calendar-range-edge-background-color;
|
|
190
190
|
box-shadow: 0 0 0 3px rgba(0,145,250,0.1);
|
|
191
|
+
|
|
192
|
+
.@{base-prefix}-calendar__top-info-content {
|
|
193
|
+
width: max-content;
|
|
194
|
+
margin: auto;
|
|
195
|
+
padding: 0 @padding-base;
|
|
196
|
+
background: rgba(255, 255, 255, 0.2);
|
|
197
|
+
border-radius: 8px;
|
|
198
|
+
opacity: 0.8;
|
|
199
|
+
}
|
|
191
200
|
}
|
|
192
201
|
|
|
193
202
|
@media (pointer: coarse) {
|
|
@@ -248,6 +257,7 @@
|
|
|
248
257
|
right: 0;
|
|
249
258
|
left: 0;
|
|
250
259
|
font-size: @calendar-info-font-size;
|
|
260
|
+
font-weight: @plain-font-weight;
|
|
251
261
|
line-height: @calendar-info-line-height;
|
|
252
262
|
|
|
253
263
|
@media (max-width: 350px) {
|
|
@@ -260,8 +270,8 @@
|
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
&__bottom-info {
|
|
263
|
-
display: none;
|
|
264
273
|
bottom: 6px;
|
|
274
|
+
opacity: 0.4;
|
|
265
275
|
}
|
|
266
276
|
|
|
267
277
|
&__selected-day {
|