Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
29
VApp/node_modules/vuetify/lib/composables/elevation.mjs
generated
vendored
Normal file
29
VApp/node_modules/vuetify/lib/composables/elevation.mjs
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
// Utilities
|
||||
import { computed, isRef } from 'vue';
|
||||
import { propsFactory } from "../util/index.mjs"; // Types
|
||||
// Composables
|
||||
export const 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');
|
||||
export function useElevation(props) {
|
||||
const elevationClasses = computed(() => {
|
||||
const elevation = isRef(props) ? props.value : props.elevation;
|
||||
const classes = [];
|
||||
if (elevation == null) return classes;
|
||||
classes.push(`elevation-${elevation}`);
|
||||
return classes;
|
||||
});
|
||||
return {
|
||||
elevationClasses
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=elevation.mjs.map
|
Reference in New Issue
Block a user