dataease/frontend/src/views/wizard/card.vue

60 lines
1.1 KiB
Vue
Raw Normal View History

2022-01-12 11:14:51 +08:00
<template>
<el-col :span="8" class="card_main">
<el-row>
<el-col :span="8" class="card_head">
<span>{{ headInfo }}</span>
</el-col>
<el-col :span="1" class="triangle" />
</el-row>
<el-row class="card_content">
<slot />
</el-row>
</el-col>
</template>
<script>
export default {
name: 'Card',
props: {
headInfo: {
type: String,
required: false
}
},
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.card_main{
padding: 70px 40px 40px 40px;
height: 35vh;
}
.card_head{
padding-left: 15px;
color: white;
line-height: 35px;
font-weight: bold;
font-size: 20px;
background-color: var(--MenuActiveBG, #409EFF);
}
.triangle{
width: 0;
height: 0;
border-bottom: 35px solid var(--MenuActiveBG, #409EFF);
border-right: 30px solid transparent;
-webkit-transform: rotate(180deg);
transform: rotate(0deg);
}
.card_content{
border: lightgray solid 1px;
border-radius: 0px 5px 5px 5px;
height: 100%;
}
</style>