40 lines
627 B
Vue
Raw Normal View History

<template>
<div class="h-card">
<div class="title">{{ title }}</div>
<div class="content">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
props: {
title: {
type: String,
default: ''
}
}
}
</script>
<style lang="less" scoped>
.h-card {
width: 100%;
height: 100%;
.title {
height: 45px;
width: 25%;
text-align: center;
line-height: 40px;
font-size: 18px;
color: #ffffff;
background-image: url('~@/assets/images/projectZjsj/border.png');
background-size: 100%;
}
.content {
height: calc(100% - 30px);
}
}
</style>