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/mixins/loadable/index.js

53 lines
1.2 KiB
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(require("vue"));
var _VProgressLinear = _interopRequireDefault(require("../../components/VProgressLinear"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Loadable
*
* @mixin
*
* Used to add linear progress bar to components
* Can use a default bar with a specific color
* or designate a custom progress linear bar
*/
/* @vue/component */
var _default = _vue.default.extend().extend({
name: 'loadable',
props: {
loading: {
type: [Boolean, String],
default: false
},
loaderHeight: {
type: [Number, String],
default: 2
}
},
methods: {
genProgress: function genProgress() {
if (this.loading === false) return null;
return this.$slots.progress || this.$createElement(_VProgressLinear.default, {
props: {
absolute: true,
color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
height: this.loaderHeight,
indeterminate: true
}
});
}
}
});
exports.default = _default;
//# sourceMappingURL=index.js.map