47 lines
No EOL
1 KiB
JavaScript
47 lines
No EOL
1 KiB
JavaScript
// Styles
|
|
import "../../../src/components/VSheet/VSheet.sass"; // Mixins
|
|
|
|
import Colorable from '../../mixins/colorable';
|
|
import Elevatable from '../../mixins/elevatable';
|
|
import Measurable from '../../mixins/measurable';
|
|
import Themeable from '../../mixins/themeable'; // Helpers
|
|
|
|
import mixins from '../../util/mixins';
|
|
/* @vue/component */
|
|
|
|
export default mixins(Colorable, Elevatable, Measurable, Themeable).extend({
|
|
name: 'v-sheet',
|
|
props: {
|
|
tag: {
|
|
type: String,
|
|
default: 'div'
|
|
},
|
|
tile: Boolean
|
|
},
|
|
computed: {
|
|
classes() {
|
|
return {
|
|
'v-sheet': true,
|
|
'v-sheet--tile': this.tile,
|
|
...this.themeClasses,
|
|
...this.elevationClasses
|
|
};
|
|
},
|
|
|
|
styles() {
|
|
return this.measurableStyles;
|
|
}
|
|
|
|
},
|
|
|
|
render(h) {
|
|
const data = {
|
|
class: this.classes,
|
|
style: this.styles,
|
|
on: this.$listeners
|
|
};
|
|
return h(this.tag, this.setBackgroundColor(this.color, data), this.$slots.default);
|
|
}
|
|
|
|
});
|
|
//# sourceMappingURL=VSheet.js.map
|