Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VApp.js 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  6. // Component level mixins
  7. // Directives
  8. require('../../../src/stylus/components/_app.styl');
  9. var _appTheme = require('./mixins/app-theme');
  10. var _appTheme2 = _interopRequireDefault(_appTheme);
  11. var _themeable = require('../../mixins/themeable');
  12. var _themeable2 = _interopRequireDefault(_themeable);
  13. var _resize = require('../../directives/resize');
  14. var _resize2 = _interopRequireDefault(_resize);
  15. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16. /* @vue/component */
  17. exports.default = {
  18. name: 'v-app',
  19. directives: {
  20. Resize: _resize2.default
  21. },
  22. mixins: [_appTheme2.default, _themeable2.default],
  23. props: {
  24. id: {
  25. type: String,
  26. default: 'app'
  27. },
  28. dark: Boolean
  29. },
  30. computed: {
  31. classes: function classes() {
  32. return _extends({
  33. 'application--is-rtl': this.$vuetify.rtl
  34. }, this.themeClasses);
  35. }
  36. },
  37. watch: {
  38. dark: function dark() {
  39. this.$vuetify.dark = this.dark;
  40. }
  41. },
  42. mounted: function mounted() {
  43. this.$vuetify.dark = this.dark;
  44. },
  45. render: function render(h) {
  46. var data = {
  47. staticClass: 'application',
  48. 'class': this.classes,
  49. attrs: { 'data-app': true },
  50. domProps: { id: this.id }
  51. };
  52. var wrapper = h('div', { staticClass: 'application--wrap' }, this.$slots.default);
  53. return h('div', data, [wrapper]);
  54. }
  55. };
  56. //# sourceMappingURL=VApp.js.map