@aleen42/calendar 1.1.0-beta.17 → 1.1.0-beta.18
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/calendar.css +9 -2
- package/dist/calendar.js +8 -2
- package/dist/calendar.legacy.min.js +1 -1
- package/dist/calendar.min.css +1 -1
- package/dist/calendar.min.js +1 -1
- package/package.json +2 -2
package/dist/calendar.css
CHANGED
|
@@ -1810,7 +1810,7 @@ input[disabled][role=dropdown] + i {
|
|
|
1810
1810
|
.u-btn.u-btn-toolbar i.checkbox {
|
|
1811
1811
|
float: none;
|
|
1812
1812
|
display: inline-block;
|
|
1813
|
-
vertical-align: middle;
|
|
1813
|
+
vertical-align: middle !important;
|
|
1814
1814
|
margin-top: 0;
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
@@ -1818,7 +1818,7 @@ input[disabled][role=dropdown] + i {
|
|
|
1818
1818
|
.u-btn.u-btn-primary.u-btn-toolbar i.checkbox + i,
|
|
1819
1819
|
.u-btn.u-btn-toolbar i.checkbox + i {
|
|
1820
1820
|
font-size: 14px;
|
|
1821
|
-
vertical-align: middle;
|
|
1821
|
+
vertical-align: middle !important;
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
1824
|
[dir="ltr"] .lyToolbar .u-btn.u-btn-primary i.checkbox + i,
|
|
@@ -3211,6 +3211,13 @@ span.tmpzTreeMove_arrow {
|
|
|
3211
3211
|
overflow-y: hidden;
|
|
3212
3212
|
}
|
|
3213
3213
|
|
|
3214
|
+
.m-cal-day .content-wrapper .main-content .calendar.calendar-s .event_icon,
|
|
3215
|
+
.m-cal-week .content-wrapper .main-content .calendar.calendar-s .event_icon,
|
|
3216
|
+
.m-cal-month .content-wrapper .main-content .calendar.calendar-s .event_icon,
|
|
3217
|
+
.m-cal-list .content-wrapper .main-content .calendar.calendar-s .event_icon {
|
|
3218
|
+
display: none;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3214
3221
|
.m-cal-week[firstweekday] .content-wrapper .main-content .calendar .main table td:last-child,
|
|
3215
3222
|
.m-cal-week[firstweekday="0"] .content-wrapper .main-content .calendar .main table td:nth-child(1),
|
|
3216
3223
|
.m-cal-week[firstweekday="1"] .content-wrapper .main-content .calendar .main table td:nth-child(6) {
|
package/dist/calendar.js
CHANGED
|
@@ -36147,9 +36147,12 @@ function dropdown($trigger, settings) {
|
|
|
36147
36147
|
|
|
36148
36148
|
const $triggerElement = settings.align || $this;
|
|
36149
36149
|
|
|
36150
|
+
const menuStyle = $menu.attr('style');
|
|
36151
|
+
_setPosition($menu, $triggerElement);
|
|
36152
|
+
|
|
36150
36153
|
// 根据菜单是否溢出来计算菜单的最大高度
|
|
36151
36154
|
if ($this.is(`.${subMenuClass}`) && getMenu($wrapper).is(`[${ADAPTIVE_MENU}]`)) {
|
|
36152
|
-
$menu.attr(ADAPTIVE_SUBMENU,
|
|
36155
|
+
$menu.attr(ADAPTIVE_SUBMENU, menuStyle || '').css('position', 'fixed');
|
|
36153
36156
|
} else if ($menu.is($wrapper)) {
|
|
36154
36157
|
const menuRect = $menu[0].getBoundingClientRect();
|
|
36155
36158
|
const winHeight = $(window).height();
|
|
@@ -36172,7 +36175,6 @@ function dropdown($trigger, settings) {
|
|
|
36172
36175
|
}
|
|
36173
36176
|
}
|
|
36174
36177
|
|
|
36175
|
-
_setPosition($menu, $triggerElement);
|
|
36176
36178
|
} else {
|
|
36177
36179
|
// 隐藏时清掉搜索框所输入的关键词
|
|
36178
36180
|
const input = $menu.find('input').data('self');
|
|
@@ -37237,6 +37239,8 @@ const Calendar = ([$context, $datePicker], viewType, options) => {
|
|
|
37237
37239
|
// 注册 resize 事件
|
|
37238
37240
|
const RESIZE_EVENT = 'resize.calendar.index';
|
|
37239
37241
|
const scrollable = $e => $e[0].scrollHeight > $e[0].offsetHeight;
|
|
37242
|
+
const adjustViewport = () =>
|
|
37243
|
+
viewType === 'MONTH' && $calendar.toggleClass('calendar-s', external_$_('.cal-table', $calendar).outerWidth() < 990);
|
|
37240
37244
|
const $window = external_$_(window).off(RESIZE_EVENT).on(RESIZE_EVENT, () => {
|
|
37241
37245
|
if ($thead.is(':visible')) {
|
|
37242
37246
|
adjustContainer?.();
|
|
@@ -37245,6 +37249,7 @@ const Calendar = ([$context, $datePicker], viewType, options) => {
|
|
|
37245
37249
|
// paddingLeft | paddingRight
|
|
37246
37250
|
[`padding${CF_USER.isRtl ? 'Left' : 'Right'}`] : isScrollable ? jquery_scrollbarWidth() : 0,
|
|
37247
37251
|
});
|
|
37252
|
+
adjustViewport();
|
|
37248
37253
|
}
|
|
37249
37254
|
});
|
|
37250
37255
|
({DAY : js_fn.fn(renderDayOrWeek, 0), WEEK : js_fn.fn(renderDayOrWeek, 1), MONTH : renderMonth, LIST : renderEventList})[viewType]();
|
|
@@ -37619,6 +37624,7 @@ const Calendar = ([$context, $datePicker], viewType, options) => {
|
|
|
37619
37624
|
setTimeout(() => {
|
|
37620
37625
|
adjustTable(); // 避免动画过程触发 resize 导致计算的宽度不准, 因此在结束时再计算一次
|
|
37621
37626
|
$main.removeClass(TRANSITION_CLASS);
|
|
37627
|
+
adjustViewport();
|
|
37622
37628
|
}, 200);
|
|
37623
37629
|
|
|
37624
37630
|
// 通过 js 动态渲染 ASIDE_WIDTH 使得 adjustTable 可以忽略动画直接根据准确的宽度计算
|