2019-04-17 15:58:15 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=elevatable.js.map
|