48 lines
No EOL
950 B
JavaScript
48 lines
No EOL
950 B
JavaScript
// Styles
|
|
import "../../../src/components/VContent/VContent.sass"; // Mixins
|
|
|
|
import SSRBootable from '../../mixins/ssr-bootable';
|
|
/* @vue/component */
|
|
|
|
export default SSRBootable.extend({
|
|
name: 'v-content',
|
|
props: {
|
|
tag: {
|
|
type: String,
|
|
default: 'main'
|
|
}
|
|
},
|
|
computed: {
|
|
styles() {
|
|
const {
|
|
bar,
|
|
top,
|
|
right,
|
|
footer,
|
|
insetFooter,
|
|
bottom,
|
|
left
|
|
} = this.$vuetify.application;
|
|
return {
|
|
paddingTop: `${top + bar}px`,
|
|
paddingRight: `${right}px`,
|
|
paddingBottom: `${footer + insetFooter + bottom}px`,
|
|
paddingLeft: `${left}px`
|
|
};
|
|
}
|
|
|
|
},
|
|
|
|
render(h) {
|
|
const data = {
|
|
staticClass: 'v-content',
|
|
style: this.styles,
|
|
ref: 'content'
|
|
};
|
|
return h(this.tag, data, [h('div', {
|
|
staticClass: 'v-content__wrap'
|
|
}, this.$slots.default)]);
|
|
}
|
|
|
|
});
|
|
//# sourceMappingURL=VContent.js.map
|