From e4595138865ca649a4f0a87fec865241e0296abd Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 10 Mar 2024 01:38:15 +0000 Subject: Fix vue multiselect --- plugins/fontawesome.ts | 3 --- plugins/multiselect.ts | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 plugins/multiselect.ts (limited to 'plugins') diff --git a/plugins/fontawesome.ts b/plugins/fontawesome.ts index a6a1a85..2363b66 100644 --- a/plugins/fontawesome.ts +++ b/plugins/fontawesome.ts @@ -3,11 +3,8 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' import { fas } from '@fortawesome/free-solid-svg-icons' import { far } from '@fortawesome/free-regular-svg-icons' -// This is important, we are going to let Nuxt worry about the CSS config.autoAddCss = false -// You can add your icons directly in this plugin. See other examples for how you -// can add other styles or just individual icons. library.add(fas) library.add(far) diff --git a/plugins/multiselect.ts b/plugins/multiselect.ts new file mode 100644 index 0000000..5f76652 --- /dev/null +++ b/plugins/multiselect.ts @@ -0,0 +1,5 @@ +import Multiselect from 'vue-multiselect' + +export default defineNuxtPlugin((nuxtApp) => { + nuxtApp.vueApp.component('multiselect', Multiselect, {}) +}) -- cgit v1.2.3-70-g09d2