Skip to content

Commit

Permalink
fix: slot test error
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed Dec 1, 2020
1 parent fdf0f5e commit c0cf93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/card/Card.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="el-card" :class="'is-' + shadow + '-shadow'">
<div class="el-card__header" v-if="$slots.header || header">
<slot name="header">{{ $slots.header }}</slot>
<slot name="header">{{ header }}</slot>
</div>
<div class="el-card__body" :style="bodyStyle">
<slot></slot>
Expand Down

0 comments on commit c0cf93e

Please sign in to comment.