33 lines
1,018 B
JavaScript
33 lines
1,018 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
|
||
|
var _vue = _interopRequireDefault(require("vue"));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
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; }
|
||
|
|
||
|
var _default = _vue.default.extend({
|
||
|
name: 'elevatable',
|
||
|
props: {
|
||
|
elevation: [Number, String]
|
||
|
},
|
||
|
computed: {
|
||
|
computedElevation: function computedElevation() {
|
||
|
return this.elevation;
|
||
|
},
|
||
|
elevationClasses: function elevationClasses() {
|
||
|
var elevation = this.computedElevation;
|
||
|
if (elevation == null) return {};
|
||
|
if (isNaN(parseInt(elevation))) return {};
|
||
|
return _defineProperty({}, "elevation-".concat(this.elevation), true);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
exports.default = _default;
|
||
|
//# sourceMappingURL=index.js.map
|