bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
1 lines • 722 B
Source Map (JSON)
{"version":3,"file":"index.mjs","names":[],"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"],"mappings":";AAEA,IAAM,YAAY,IAA2B,UAC3C,GAAG,aAAa,iBAAiB,KAAK;AACxC,IAAa,cAAsC;CACjD,QAAQ,IAAI,SAAiC;EAC3C,SAAS,IAAI,QAAQ,KAAK;CAC5B;CACA,QAAQ,IAAI,SAAiC;EAC3C,SAAS,IAAI,QAAQ,KAAK;CAC5B;AACF"}