mirror of
https://github.com/dataease/dataease.git
synced 2025-02-27 22:15:43 +08:00
60 lines
1.1 KiB
Vue
60 lines
1.1 KiB
Vue
![]() |
<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>
|