UNPKG

bootstrap-vue-next

Version:

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

3 lines (2 loc) 717 B
"use strict";const d=require("vue");exports.useRadiusElementClasses=e=>{const o=(d,e)=>{const o=null===e?"":`-${e}`;return"circle"===d?`rounded${o}-circle`:"pill"===d?`rounded${o}-pill`:"number"==typeof d||"0"===d||"1"===d||"2"===d||"3"===d||"4"===d||"5"===d?`rounded${o}-${d}`:"none"===d?`rounded${o}-0`:"sm"===d?`rounded${o}-1`:"lg"===d?`rounded${o}-5`:`rounded${o}`};return d.computed((()=>{const n=d.toValue(e);return{[`${o(n.rounded,null)}`]:!!n.rounded,[`${o(n.roundedTop,"top")}`]:!!n.roundedTop,[`${o(n.roundedBottom,"bottom")}`]:!!n.roundedBottom,[`${o(n.roundedStart,"start")}`]:!!n.roundedStart,[`${o(n.roundedEnd,"end")}`]:!!n.roundedEnd}}))}; //# sourceMappingURL=useRadiusElementClasses-D-ydxJLn.js.map