it-tools/components/ToolWrapper.vue

43 lines
966 B
Vue
Raw Normal View History

2021-02-06 11:14:28 +01:00
<template>
<div class="tool-wrapper">
<v-row no-gutters justify="center" align="center">
2021-03-14 20:11:39 +01:00
<v-col cols="12" xl="6" lg="8" md="10">
2021-03-14 23:37:57 +01:00
<ToolHeader :config="config" />
2021-03-14 21:20:35 +01:00
<template v-if="!noCard">
<v-card flat>
<v-card-text class="pa-10">
2021-03-14 23:37:57 +01:00
<slot />
2021-03-14 21:20:35 +01:00
</v-card-text>
</v-card>
</template>
<template v-else>
2021-03-14 23:37:57 +01:00
<slot />
2021-03-14 21:20:35 +01:00
</template>
2021-02-06 11:14:28 +01:00
</v-col>
</v-row>
</div>
</template>
<script lang="ts">
import {Component, Prop, Vue} from 'nuxt-property-decorator'
2021-03-14 23:37:57 +01:00
import ToolHeader from './ToolHeader.vue'
import type {ToolConfig} from '~/types/ToolConfig'
@Component({components: {ToolHeader}})
2021-02-06 11:14:28 +01:00
export default class ToolWrapper extends Vue {
2021-03-14 21:20:35 +01:00
@Prop() readonly config!: ToolConfig;
@Prop({default: () => false}) readonly noCard!: boolean;
2021-02-06 11:14:28 +01:00
}
</script>
<style scoped lang="less">
.tool-wrapper {
height: 100%;
.category {
color: #546167;
}
}
</style>