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 955B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _vue = require('vue');
  6. var _vue2 = _interopRequireDefault(_vue);
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. 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; }
  9. exports.default = _vue2.default.extend({
  10. name: 'elevatable',
  11. props: {
  12. elevation: [Number, String]
  13. },
  14. computed: {
  15. computedElevation: function computedElevation() {
  16. return this.elevation;
  17. },
  18. elevationClasses: function elevationClasses() {
  19. if (!this.computedElevation) return {};
  20. return _defineProperty({}, 'elevation-' + this.computedElevation, true);
  21. }
  22. }
  23. });
  24. //# sourceMappingURL=elevatable.js.map