UNPKG

bootstrap-vue-next

Version:

BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.

1 lines 666 B
{"version":3,"file":"index.mjs","sources":["../../../../src/plugins/defaults/index.ts"],"sourcesContent":["import {type Plugin, ref, type Ref} from 'vue'\nimport type {BootstrapVueOptions, BvnComponentProps} from '../../types/BootstrapVueOptions'\nimport {defaultsKey} from '../../utils/keys'\n\nexport const defaultsPlugin: Plugin = {\n install(app, options: BootstrapVueOptions) {\n const val = options?.components ?? {}\n app.provide(defaultsKey, ref(val) as Ref<Partial<BvnComponentProps>>)\n },\n}\n"],"names":[],"mappings":";;AAIO,MAAM,iBAAyB;AAAA,EACpC,QAAQ,KAAK,SAA8B;AACnC,UAAA,OAAM,mCAAS,eAAc;AACnC,QAAI,QAAQ,aAAa,IAAI,GAAG,CAAoC;AAAA,EACtE;AACF;"}