项目原始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.
 
 
 
 

57 line
1.5 KiB

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. require("../../../src/components/VContent/VContent.sass");
  7. var _ssrBootable = _interopRequireDefault(require("../../mixins/ssr-bootable"));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. // Styles
  10. // Mixins
  11. /* @vue/component */
  12. var _default = _ssrBootable.default.extend({
  13. name: 'v-content',
  14. props: {
  15. tag: {
  16. type: String,
  17. default: 'main'
  18. }
  19. },
  20. computed: {
  21. styles: function styles() {
  22. var _this$$vuetify$applic = this.$vuetify.application,
  23. bar = _this$$vuetify$applic.bar,
  24. top = _this$$vuetify$applic.top,
  25. right = _this$$vuetify$applic.right,
  26. footer = _this$$vuetify$applic.footer,
  27. insetFooter = _this$$vuetify$applic.insetFooter,
  28. bottom = _this$$vuetify$applic.bottom,
  29. left = _this$$vuetify$applic.left;
  30. return {
  31. paddingTop: "".concat(top + bar, "px"),
  32. paddingRight: "".concat(right, "px"),
  33. paddingBottom: "".concat(footer + insetFooter + bottom, "px"),
  34. paddingLeft: "".concat(left, "px")
  35. };
  36. }
  37. },
  38. render: function render(h) {
  39. var data = {
  40. staticClass: 'v-content',
  41. style: this.styles,
  42. ref: 'content'
  43. };
  44. return h(this.tag, data, [h('div', {
  45. staticClass: 'v-content__wrap'
  46. }, this.$slots.default)]);
  47. }
  48. });
  49. exports.default = _default;
  50. //# sourceMappingURL=VContent.js.map