whychdw
2019-07-24 9b8bf853abf6bcab5592913508d8ec3cb15c2440
src/components/DividerCard.vue
@@ -1,8 +1,8 @@
<template>
    <div class="component-container">
        <div class="divider-card">
        <div class="divider-card" style="margin-bottom: 32px;">
            <div class="divider-card-title center">{{title}}</div>
            <div class="divider-card-content">
            <div class="divider-card-content" :style="style">
                <slot><div class="center">暂无内容</div></slot>
            </div>
        </div>
@@ -14,6 +14,17 @@
        title: {
            type: [String, Number],
            default: '未知'
        },
        maxHeight: {
            type: String,
            default: '300px'
        }
    },
    data() {
        return {
            style: {
                maxHeight: this.maxHeight
            }
        }
    }
}
@@ -34,5 +45,6 @@
    }
    .divider-card-content {
        padding: 24px 8px;
        overflow-y: auto;
    }
</style>