问题描述:两个el-card的高度不一致 造成视觉效果污染
template架构:
<div class="content-area">
<RequestCard
v-for="(item, index) in currentRequestList"
:api-data="item"
:key="index"
@showRequestDialog="handleRequestDialog"
/>
</div>
RequestCard内部样式:
.content-area {
display: flex;
justify-content: space-between;
align-items: stretch;
flex-wrap: wrap;
}
.requestCard {
width: 48%;
.box-card {
// ... 样式定义 ...
margin-bottom: 20px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.content {
// ... 样式定义 ...
.header-item {
display: flex;
justify-content: space-between;
align-items: center;
}
}
.button {
// ... 样式定义 ...
}
}
请问各位大爷这个需求怎么实现