This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/es5/components/VCard/VCard.js

92 lines
3.4 KiB
JavaScript
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VCard/VCard.sass");
var _VSheet = _interopRequireDefault(require("../VSheet"));
var _loadable = _interopRequireDefault(require("../../mixins/loadable"));
var _routable = _interopRequireDefault(require("../../mixins/routable"));
var _mixins = _interopRequireDefault(require("../../util/mixins"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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; }
/* @vue/component */
var _default = (0, _mixins.default)(_loadable.default, _routable.default, _VSheet.default).extend({
name: 'v-card',
props: {
flat: Boolean,
hover: Boolean,
img: String,
link: Boolean,
loaderHeight: {
type: [Number, String],
default: 4
},
outlined: Boolean,
raised: Boolean
},
computed: {
classes: function classes() {
return _objectSpread({
'v-card': true
}, _routable.default.options.computed.classes.call(this), {
'v-card--flat': this.flat,
'v-card--hover': this.hover,
'v-card--link': this.isClickable,
'v-card--loading': this.loading,
'v-card--disabled': this.loading || this.disabled,
'v-card--outlined': this.outlined,
'v-card--raised': this.raised
}, _VSheet.default.options.computed.classes.call(this));
},
styles: function styles() {
var style = _objectSpread({}, _VSheet.default.options.computed.styles.call(this));
if (this.img) {
style.background = "url(\"".concat(this.img, "\") center center / cover no-repeat");
}
return style;
}
},
methods: {
genProgress: function genProgress() {
var render = _loadable.default.options.methods.genProgress.call(this);
if (!render) return null;
return this.$createElement('div', {
staticClass: 'v-card__progress'
}, [render]);
}
},
render: function render(h) {
var _this$generateRouteLi = this.generateRouteLink(),
tag = _this$generateRouteLi.tag,
data = _this$generateRouteLi.data;
data.style = this.styles;
if (this.isClickable) {
data.attrs = data.attrs || {};
data.attrs.tabindex = 0;
}
return h(tag, this.setBackgroundColor(this.color, data), [this.genProgress(), this.$slots.default]);
}
});
exports.default = _default;
//# sourceMappingURL=VCard.js.map