项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Styles
  2. import "../../../src/components/VApp/VApp.sass"; // Mixins
  3. import Themeable from '../../mixins/themeable'; // Utilities
  4. import mixins from '../../util/mixins';
  5. /* @vue/component */
  6. export default mixins(Themeable).extend({
  7. name: 'v-app',
  8. props: {
  9. dark: {
  10. type: Boolean,
  11. default: undefined
  12. },
  13. id: {
  14. type: String,
  15. default: 'app'
  16. },
  17. light: {
  18. type: Boolean,
  19. default: undefined
  20. }
  21. },
  22. computed: {
  23. isDark() {
  24. return this.$vuetify.theme.dark;
  25. }
  26. },
  27. beforeCreate() {
  28. if (!this.$vuetify || this.$vuetify === this.$root) {
  29. throw new Error('Vuetify is not properly initialized, see https://vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object');
  30. }
  31. },
  32. render(h) {
  33. const wrapper = h('div', {
  34. staticClass: 'v-application--wrap'
  35. }, this.$slots.default);
  36. return h('div', {
  37. staticClass: 'v-application',
  38. class: {
  39. 'v-application--is-rtl': this.$vuetify.rtl,
  40. 'v-application--is-ltr': !this.$vuetify.rtl,
  41. ...this.themeClasses
  42. },
  43. attrs: {
  44. 'data-app': true
  45. },
  46. domProps: {
  47. id: this.id
  48. }
  49. }, [wrapper]);
  50. }
  51. });
  52. //# sourceMappingURL=VApp.js.map