mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
e97fe719c4
- Update button's type in examples per changes for button
32 lines
532 B
Vue
32 lines
532 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>
|
|
</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>
|