Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

elevatable.js 713B

12345678910111213141516171819
  1. 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; }
  2. import Vue from 'vue';
  3. export default Vue.extend({
  4. name: 'elevatable',
  5. props: {
  6. elevation: [Number, String]
  7. },
  8. computed: {
  9. computedElevation: function computedElevation() {
  10. return this.elevation;
  11. },
  12. elevationClasses: function elevationClasses() {
  13. if (!this.computedElevation) return {};
  14. return _defineProperty({}, 'elevation-' + this.computedElevation, true);
  15. }
  16. }
  17. });
  18. //# sourceMappingURL=elevatable.js.map