RAS-WEB/src/views/screen/R_D_Environment/component/item.vue

40 lines
702 B
Vue
Raw Normal View History

2024-11-05 09:07:21 +00:00
<template>
<div class="item-container">
<div class="box-title">{{ prop.title }}</div>
<div class="content">
<slot></slot>
</div>
</div>
</template>
<script setup>
const prop = defineProps({
title: {
type: String,
default: '标题'
},
})
</script>
<style lang="scss" scoped>
.item-container {
width: 100%;
height: 100%;
.box-title {
width: 100%;
height: 41px;
box-sizing: border-box;
padding-left: 25px;
font-size: 20px;
line-height: 40px;
color: #fff;
background: url('/src/assets/images/box-title.png') no-repeat center center / 100% 100%;
}
.content {
width: 100%;
height: calc(100% - 41px);
}
}
</style>