41 lines
995 B
JavaScript
41 lines
995 B
JavaScript
import {
|
|
getCurrentInstanceName,
|
|
propsFactory
|
|
} from "./chunk-I4KGD5X4.js";
|
|
import {
|
|
computed,
|
|
isRef
|
|
} from "./chunk-PD2AWGJV.js";
|
|
|
|
// node_modules/vuetify/lib/composables/rounded.mjs
|
|
var makeRoundedProps = propsFactory({
|
|
rounded: {
|
|
type: [Boolean, Number, String],
|
|
default: void 0
|
|
}
|
|
}, "rounded");
|
|
function useRounded(props) {
|
|
let name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : getCurrentInstanceName();
|
|
const roundedClasses = computed(() => {
|
|
const rounded = isRef(props) ? props.value : props.rounded;
|
|
const classes = [];
|
|
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;
|
|
});
|
|
return {
|
|
roundedClasses
|
|
};
|
|
}
|
|
|
|
export {
|
|
makeRoundedProps,
|
|
useRounded
|
|
};
|
|
//# sourceMappingURL=chunk-24LK52JF.js.map
|