no message

Former-commit-id: 6034114d23d7abc6ef39e10e4de88a17b23ce8a8
Former-commit-id: 368f77194337643e3767733f5ac6ce9cf0f822bf
Former-commit-id: 6360de2bc9174267c8d5cc970325eca904e3d14f
This commit is contained in:
李杨
2018-03-21 08:42:44 +08:00
parent 5e7c387cd1
commit 0cedf9ab6f
7 changed files with 106 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="dd-card-full" :style="cardStyle">
<div class="dd-card-full__header" ref="header">
<div v-if="$slots.header" class="dd-card-full__header" ref="header">
<slot name="header"></slot>
</div>
<div class="dd-card-full__body" :style="bodyStyle">
@@ -40,7 +40,7 @@ export default {
}
},
mounted () {
this.headerHeight = this.$refs.header.offsetHeight
this.headerHeight = this.$slots.header ? this.$refs.header.offsetHeight : 0
},
computed: {
cardStyle () {