This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/components/VContent/VContent.js
2019-08-11 20:48:02 +02:00

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