<template>
<div class="form-template">
<slot name="head"></slot>
<slot name="content"></slot>
<slot name="page"></slot>
</div>
</template>
<script>
export default {
name: 'form-template',
components: {},
data() {
return {
}
}
}
</script>
<style lang="scss" scoped>
.form-template {
width: 99%;
height: 100%;
margin: 0 auto;
background-color: white;
}
.template-head {
height: 50px;
padding: 0 15px;
display: flex;
flex-direction: column;
justify-content: center;
}
.template-content {
height: calc(100% - 120px);
padding: 0 15px;
}
.template-page {
height: 70px;
padding: 0 15px;
display: flex;
justify-content: flex-end;
align-items: center;
}
::v-deep .el-col {
margin-bottom: 0;
}
::v-deep .equality {
display: flex;
justify-content: flex-end;
}
</style>
import TemplateIndex from '@/components/base-dialog/templateTable'
components: {
TemplateIndex,
},
<TemplateIndex>
<div slot="head" class="template-head">
</div>
<div slot="content" class="template-content">
</div>
<div slot="page" class="template-page">
</div>
</TemplateIndex>