Major overhaul to the theme and now functioning.
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
import {
|
||||
propsFactory
|
||||
} from "./chunk-LZ5T2ERG.js";
|
||||
import {
|
||||
isRef,
|
||||
toRef
|
||||
} from "./chunk-2MKFL3BX.js";
|
||||
|
||||
// node_modules/vuetify/lib/composables/elevation.js
|
||||
var makeElevationProps = propsFactory({
|
||||
elevation: {
|
||||
type: [Number, String],
|
||||
validator(v) {
|
||||
const value = parseInt(v);
|
||||
return !isNaN(value) && value >= 0 && // Material Design has a maximum elevation of 24
|
||||
// https://material.io/design/environment/elevation.html#default-elevations
|
||||
value <= 24;
|
||||
}
|
||||
}
|
||||
}, "elevation");
|
||||
function useElevation(props) {
|
||||
const elevationClasses = toRef(() => {
|
||||
const elevation = isRef(props) ? props.value : props.elevation;
|
||||
if (elevation == null) return [];
|
||||
return [`elevation-${elevation}`];
|
||||
});
|
||||
return {
|
||||
elevationClasses
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
makeElevationProps,
|
||||
useElevation
|
||||
};
|
||||
//# sourceMappingURL=chunk-YJD2PNP6.js.map
|
||||
Reference in New Issue
Block a user