'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _vue = require('vue'); var _vue2 = _interopRequireDefault(_vue); var _VProgressLinear = require('../components/VProgressLinear'); var _VProgressLinear2 = _interopRequireDefault(_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 */ exports.default = _vue2.default.extend().extend({ name: 'loadable', props: { loading: { type: [Boolean, String], default: false } }, methods: { genProgress: function genProgress() { if (this.loading === false) return null; return this.$slots.progress || this.$createElement(_VProgressLinear2.default, { props: { color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading, height: 2, indeterminate: true } }); } } }); //# sourceMappingURL=loadable.js.map