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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 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; };
  2. import '../../../src/stylus/components/_app.styl';
  3. // Component level mixins
  4. import AppTheme from './mixins/app-theme';
  5. import Themeable from '../../mixins/themeable';
  6. // Directives
  7. import Resize from '../../directives/resize';
  8. /* @vue/component */
  9. export default {
  10. name: 'v-app',
  11. directives: {
  12. Resize: Resize
  13. },
  14. mixins: [AppTheme, Themeable],
  15. props: {
  16. id: {
  17. type: String,
  18. default: 'app'
  19. },
  20. dark: Boolean
  21. },
  22. computed: {
  23. classes: function classes() {
  24. return _extends({
  25. 'application--is-rtl': this.$vuetify.rtl
  26. }, this.themeClasses);
  27. }
  28. },
  29. watch: {
  30. dark: function dark() {
  31. this.$vuetify.dark = this.dark;
  32. }
  33. },
  34. mounted: function mounted() {
  35. this.$vuetify.dark = this.dark;
  36. },
  37. render: function render(h) {
  38. var data = {
  39. staticClass: 'application',
  40. 'class': this.classes,
  41. attrs: { 'data-app': true },
  42. domProps: { id: this.id }
  43. };
  44. var wrapper = h('div', { staticClass: 'application--wrap' }, this.$slots.default);
  45. return h('div', data, [wrapper]);
  46. }
  47. };
  48. //# sourceMappingURL=VApp.js.map