om/node_modules/vuetify/lib/mixins/elevatable.js

19 lines
713 B
JavaScript
Raw Normal View History

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import Vue from 'vue';
export default Vue.extend({
name: 'elevatable',
props: {
elevation: [Number, String]
},
computed: {
computedElevation: function computedElevation() {
return this.elevation;
},
elevationClasses: function elevationClasses() {
if (!this.computedElevation) return {};
return _defineProperty({}, 'elevation-' + this.computedElevation, true);
}
}
});
//# sourceMappingURL=elevatable.js.map