29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
import { Rn as isRef, U as computed } from "./vue.runtime.esm-bundler-BvoXUmaf.js";
|
|
import { c as getCurrentInstanceName, l as propsFactory } from "./defineComponent-DB6xIcDy.js";
|
|
//#region node_modules/vuetify/lib/composables/rounded.js
|
|
var makeRoundedProps = propsFactory({
|
|
rounded: {
|
|
type: [
|
|
Boolean,
|
|
Number,
|
|
String
|
|
],
|
|
default: void 0
|
|
},
|
|
tile: Boolean
|
|
}, "rounded");
|
|
function useRounded(props, name = getCurrentInstanceName()) {
|
|
return { roundedClasses: computed(() => {
|
|
const rounded = isRef(props) ? props.value : props.rounded;
|
|
const tile = isRef(props) ? false : props.tile;
|
|
const classes = [];
|
|
if (tile || rounded === false) classes.push("rounded-0");
|
|
else if (rounded === true || rounded === "") classes.push(`${name}--rounded`);
|
|
else if (typeof rounded === "string" || rounded === 0) for (const value of String(rounded).split(" ")) classes.push(`rounded-${value}`);
|
|
return classes;
|
|
}) };
|
|
}
|
|
//#endregion
|
|
export { useRounded as n, makeRoundedProps as t };
|
|
|
|
//# sourceMappingURL=rounded-BuPGKRa9.js.map
|