Files
faga dfad5539f5 feat(components): [card] adds footer slot (#10357)
feat(components): [card]

adds footer slot

closed #6873

Co-authored-by: btea <2356281422@qq.com>
2023-11-06 19:29:22 +08:00

33 lines
580 B
Vue

<template>
<el-card class="box-card">
<template #header>
<div class="card-header">
<span>Card name</span>
<el-button class="button" text>Operation button</el-button>
</div>
</template>
<div v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</div>
<template #footer>Footer content</template>
</el-card>
</template>
<style>
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.box-card {
width: 480px;
}
</style>