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 • 885 B
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../src/plugins/bootstrap/index.ts"],"sourcesContent":["import {type Plugin, ref, type Ref} from 'vue'\nimport type {BootstrapVueOptions, BvnComponentProps} from '../../types/BootstrapVueOptions'\nimport {defaultsKey} from '../../utils/keys'\n\n/**\n * This plugin is essential for the bootstrap-vue-next to function. `createBootstrap` calls this for you,\n * but if you are not using `createBootstrap`, you will need to manually install this plugin.\n */\nexport const bootstrapPlugin: 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":";;AAQO,MAAM,kBAA0B;AAAA,EACrC,QAAQ,KAAK,SAA8B;AACnC,UAAA,OAAM,mCAAS,eAAc,CAAC;AACpC,QAAI,QAAQ,aAAa,IAAI,GAAG,CAAoC;AAAA,EAAA;AAExE;"}