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:
+8
-1
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mx-scrollbar-wrap {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.mx-scrollbar-track {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
|
||||
Reference in New Issue
Block a user