You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
493 B
Vue
24 lines
493 B
Vue
2 years ago
|
<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>
|