<template>
<div class="xline_card" :style="{height:height+ 'px'}">
<div class="xline_card_header" >
<div class="xline_arrow"></div>
<slot name="xline_header">{{ header }}</slot>
</div>
<div class="xline_body" :style="bodyStyle">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
name: 'XlineCard',
props: {
isHeader: Boolean,
header: {},
bodyStyle: {},
shadow: {
type: String
},
height: {
type: Number,
default: ''
},
},
// mounted(){
// alert(this.height)
// },
}
</script>
<style scoped>
.xline_card{
padding: 10px;
margin-top: 5px;
margin-left: 5px;
border-radius: 5px;
box-sizing: border-box;
background-color: #13377833;
}
.xline_card_header {
min-height: 34px;
position: relative;
color: #ffffff;
background: url("/img/bg/xline_card_head.png");
background-size: 100% 100%;
font-weight: bolder;
line-height: 34px;
padding-left: 30px;
}
.xline_arrow{
position: absolute;
background: url("/img/bg/xline_arrow.png");
background-size: 100% 100%;
width: 12px;
height: 11px;
top: 11px;
left: 10px;
}
.xline_body{
padding: 5px 2px;
}
</style>