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/VMessages/VMessages.js

61 lines
1.5 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;
require("../../../src/components/VMessages/VMessages.sass");
var _colorable = _interopRequireDefault(require("../../mixins/colorable"));
var _themeable = _interopRequireDefault(require("../../mixins/themeable"));
var _mixins = _interopRequireDefault(require("../../util/mixins"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// Styles
// Mixins
/* @vue/component */
var _default2 = (0, _mixins.default)(_colorable.default, _themeable.default).extend({
name: 'v-messages',
props: {
value: {
type: Array,
default: function _default() {
return [];
}
}
},
methods: {
genChildren: function genChildren() {
return this.$createElement('transition-group', {
staticClass: 'v-messages__wrapper',
attrs: {
name: 'message-transition',
tag: 'div'
}
}, this.value.map(this.genMessage));
},
genMessage: function genMessage(message, key) {
return this.$createElement('div', {
staticClass: 'v-messages__message',
key: key,
domProps: {
innerHTML: message
}
});
}
},
render: function render(h) {
return h('div', this.setTextColor(this.color, {
staticClass: 'v-messages',
class: this.themeClasses
}), [this.genChildren()]);
}
});
exports.default = _default2;
//# sourceMappingURL=VMessages.js.map