From c73aeab2ab387a06a7d0a259cb0b7c4aee222d1f Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 16 Oct 2023 12:21:42 +0800 Subject: [PATCH] refactor: globally import OverlayScrollbarsComponent --- src/contentScripts/index.ts | 5 +++++ src/contentScripts/views/App.vue | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 34d5e7cf..f02d3241 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -1,5 +1,9 @@ // import { onMessage } from 'webext-bridge' import { createApp } from 'vue' +import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue' +import 'overlayscrollbars/overlayscrollbars.css' +import 'uno.css' +import '~/styles/index.ts' import App from './views/App.vue' import { setupApp } from '~/logic/common-setup' import { i18n } from '~/utils/i18n' @@ -147,6 +151,7 @@ function injectApp() { document.body.appendChild(container) app = createApp(App) + app.component('OverlayScrollbarsComponent', OverlayScrollbarsComponent) setupApp(app) app.use(i18n).mount(root) } diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 78010b74..bf6f059e 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -1,12 +1,9 @@