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

61 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{
2022-01-12 17:25:47 +08:00
padding: 40px 30px 30px 30px;
height: 33vh;
2022-01-12 11:14:51 +08:00
}
.card_head{
padding-left: 15px;
color: white;
2022-01-12 16:56:17 +08:00
line-height: 30px;
2022-01-12 11:14:51 +08:00
font-weight: bold;
2022-01-12 16:56:17 +08:00
font-size: 18px;
2022-01-12 11:14:51 +08:00
background-color: var(--MenuActiveBG, #409EFF);
}
.triangle{
width: 0;
height: 0;
2022-01-12 16:56:17 +08:00
border-bottom: 30px solid var(--MenuActiveBG, #409EFF);
2022-01-12 11:14:51 +08:00
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%;
2022-01-12 16:56:17 +08:00
overflow: hidden;
2022-01-12 11:14:51 +08:00
}
</style>