no message

Former-commit-id: 1400c7073c78d3c8cb91c5b81fb20dc1f0701a0f
Former-commit-id: b77dd9146b98ec3c8f9d84e905b313254726598f
Former-commit-id: 2761caa1ac34a915c52d38a3c5bab0e074a64236
This commit is contained in:
李杨
2018-03-09 19:38:33 +08:00
parent a66ea7ac32
commit 6553a0b99e
5 changed files with 46 additions and 14 deletions

View File

@@ -0,0 +1,44 @@
<template>
<div class="dd-card-full">
<div class="dd-card-full__header" ref="header">
<slot name="header"></slot>
</div>
<div class="dd-card-full__body">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
mounted () {
console.log(this.$refs.header.offsetHeight)
}
}
</script>
<style lang="scss" scoped>
.dd-card-full {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
border-radius: 4px;
border: 1px solid #ebeef5;
background-color: #fff;
overflow: hidden;
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
color: #303133;
.dd-card-full__header {
padding: 18px 20px;
border-bottom: 1px solid #ebeef5;
box-sizing: border-box;
}
.dd-card-full__body {
padding: 20px;
}
}
</style>