Skip to content

Commit

Permalink
refactor(card): remove needless div tag (#1732)
Browse files Browse the repository at this point in the history
fix #1717
  • Loading branch information
cokemine committed Apr 1, 2021
1 parent a02737a commit fe3807b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/card/src/index.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<template>
<div>
<div class="el-card" :class="shadow ? 'is-' + shadow + '-shadow' : 'is-always-shadow'">
<div v-if="$slots.header || header" class="el-card__header">
<slot name="header">{{ header }}</slot>
</div>
<div class="el-card__body" :style="bodyStyle">
<slot></slot>
</div>
<div class="el-card" :class="shadow ? 'is-' + shadow + '-shadow' : 'is-always-shadow'">
<div v-if="$slots.header || header" class="el-card__header">
<slot name="header">{{ header }}</slot>
</div>
<div class="el-card__body" :style="bodyStyle">
<slot></slot>
</div>
</div>
</template>
<script lang='ts'>
import { defineComponent } from 'vue'
export default defineComponent({
name: 'ElCard',
props: {
Expand Down

0 comments on commit fe3807b

Please sign in to comment.