Major overhaul to the theme and now functioning.
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
import {
|
||||
getCurrentInstanceName,
|
||||
propsFactory
|
||||
} from "./chunk-LZ5T2ERG.js";
|
||||
import {
|
||||
computed,
|
||||
isRef
|
||||
} from "./chunk-2MKFL3BX.js";
|
||||
|
||||
// node_modules/vuetify/lib/composables/rounded.js
|
||||
var makeRoundedProps = propsFactory({
|
||||
rounded: {
|
||||
type: [Boolean, Number, String],
|
||||
default: void 0
|
||||
},
|
||||
tile: Boolean
|
||||
}, "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 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;
|
||||
});
|
||||
return {
|
||||
roundedClasses
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
makeRoundedProps,
|
||||
useRounded
|
||||
};
|
||||
//# sourceMappingURL=chunk-AQK3CYVW.js.map
|
||||
Reference in New Issue
Block a user