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 747 B
{"version":3,"file":"index.mjs","sources":["../../../../src/directives/BColorMode/index.ts"],"sourcesContent":["import type {Directive, DirectiveBinding} from 'vue'\n\nconst setTheme = (el: Readonly<HTMLElement>, value: string): void =>\n el.setAttribute('data-bs-theme', value)\nexport const vBColorMode: Directive<HTMLElement> = {\n mounted(el, binding: DirectiveBinding): void {\n setTheme(el, binding.value)\n },\n updated(el, binding: DirectiveBinding): void {\n setTheme(el, binding.value)\n },\n}\n"],"names":[],"mappings":"AAEA,MAAM,WAAW,CAAC,IAA2B,UAC3C,GAAG,aAAa,iBAAiB,KAAK;AACjC,MAAM,cAAsC;AAAA,EACjD,QAAQ,IAAI,SAAiC;AAClC,aAAA,IAAI,QAAQ,KAAK;AAAA,EAC5B;AAAA,EACA,QAAQ,IAAI,SAAiC;AAClC,aAAA,IAAI,QAAQ,KAAK;AAAA,EAAA;AAE9B;"}