1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <template>
| <div class="el-card" :class="shadow ? 'is-' + shadow + '-shadow' : 'is-always-shadow'">
| <div class="el-card__header" v-if="$slots.header || header">
| <slot name="header">{{ header }}</slot>
| </div>
| <div class="el-card__body" :style="bodyStyle">
| <slot></slot>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| name: 'ElCard',
| props: {
| header: {},
| bodyStyle: {},
| shadow: {
| type: String
| }
| }
| };
| </script>
|
|