<script src="https://cdn.bootcss.com/vue/2.5.2/vue.min.js"></script>
<script src="//unpkg.com/element-ui@2.15.7/lib/index.js"></script>
<div id="app">
<div v-for="j in 8" :key="j">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>{{'卡片名称'+j}}</span>
<el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
</div>
<div v-for="o in 4" :key="o" class="text item">
{{'列表内容 ' + o }}
</div>
</el-card>
</div>
</div>
@import url("//unpkg.com/element-ui@2.15.7/lib/theme-chalk/index.css");
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
width: 99%;
margin:1% auto;
}
new Vue().$mount('#app')
示例
网友评论