mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-18 02:10:36 +03:00
13 lines
502 B
TypeScript
13 lines
502 B
TypeScript
import { VueConstructor, PluginObject } from 'vue';
|
|
import OverlayScrollbars from 'overlayscrollbars';
|
|
import OverlayScrollbarsComponent from './OverlayScrollbarsComponent.vue';
|
|
|
|
export const OverlayScrollbarsPlugin: PluginObject<OverlayScrollbars.Options> = {
|
|
install(vue: VueConstructor, options?: OverlayScrollbars.Options) {
|
|
if (options) {
|
|
OverlayScrollbars.defaultOptions(options);
|
|
}
|
|
|
|
vue.component('overlay-scrollbars', OverlayScrollbarsComponent);
|
|
}
|
|
} |