Major overhaul to the theme and now functioning.
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
import {
|
||||
getCurrentInstanceName,
|
||||
propsFactory
|
||||
} from "./chunk-LZ5T2ERG.js";
|
||||
import {
|
||||
toRef
|
||||
} from "./chunk-2MKFL3BX.js";
|
||||
|
||||
// node_modules/vuetify/lib/composables/density.js
|
||||
var allowedDensities = [null, "default", "comfortable", "compact"];
|
||||
var makeDensityProps = propsFactory({
|
||||
density: {
|
||||
type: String,
|
||||
default: "default",
|
||||
validator: (v) => allowedDensities.includes(v)
|
||||
}
|
||||
}, "density");
|
||||
function useDensity(props) {
|
||||
let name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : getCurrentInstanceName();
|
||||
const densityClasses = toRef(() => {
|
||||
return `${name}--density-${props.density}`;
|
||||
});
|
||||
return {
|
||||
densityClasses
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
makeDensityProps,
|
||||
useDensity
|
||||
};
|
||||
//# sourceMappingURL=chunk-TM3MIDYC.js.map
|
||||
Reference in New Issue
Block a user