Commit a3e1344df657eabc469e1f9bbe8776f2435f4cd1
Committed by
GitHub
1 parent
737e2df8
Update card.vue
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/components/card/card.vue
| 1 | 1 | <template> |
| 2 | 2 | <div :class="classes"> |
| 3 | 3 | <div :class="headClasses" v-if="showHead"><slot name="title"> |
| 4 | - <p v-if="title"><Icon v-if="icon" :type="icon"></Icon>{{title}}</p> | |
| 4 | + <p v-if="title"> | |
| 5 | + <Icon v-if="icon" :type="icon"></Icon> | |
| 6 | + {{title}} | |
| 7 | + </p> | |
| 5 | 8 | </slot></div> |
| 6 | 9 | <div :class="extraClasses" v-if="showExtra"><slot name="extra"></slot></div> |
| 7 | 10 | <div :class="bodyClasses" :style="bodyStyles"><slot></slot></div> |
| ... | ... | @@ -10,7 +13,8 @@ |
| 10 | 13 | <script> |
| 11 | 14 | const prefixCls = 'ivu-card'; |
| 12 | 15 | const defaultPadding = 16; |
| 13 | - import Icon from '../icon/index' | |
| 16 | + import Icon from '../icon/icon.vue'; | |
| 17 | + | |
| 14 | 18 | export default { |
| 15 | 19 | name: 'Card', |
| 16 | 20 | components: { Icon }, | ... | ... |