2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-14 20:12:29 +03:00

fix: ie compatibility

This commit is contained in:
mengxiong10
2019-11-11 17:20:44 +08:00
parent 6060330e23
commit 99a4abdafc
10 changed files with 612 additions and 60 deletions
+8 -1
View File
@@ -18,6 +18,13 @@ if (typeof window !== 'undefined' && window.Vue) {
DatePicker.install(window.Vue);
}
export { CalendarPanel, CalendarRange, TimePanel, TimeRange, DatetimePanel, DatetimeRange };
Object.assign(DatePicker, {
CalendarPanel,
CalendarRange,
TimePanel,
TimeRange,
DatetimePanel,
DatetimeRange,
});
export default DatePicker;
+1 -1
View File
@@ -9,7 +9,7 @@
<div
ref="wrap"
class="mx-scrollbar-wrap"
:style="{ overflow: 'hidden scroll', height: '100%', marginRight: `-${scrollbarWidth}px` }"
:style="{ marginRight: `-${scrollbarWidth}px` }"
@scroll="handleScroll"
>
<slot></slot>
+6
View File
@@ -7,6 +7,12 @@
}
}
.mx-scrollbar-wrap {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
.mx-scrollbar-track {
position: absolute;
top: 2px;