From 9b8bf853abf6bcab5592913508d8ec3cb15c2440 Mon Sep 17 00:00:00 2001
From: whychdw <49690745@qq.com>
Date: 星期三, 24 七月 2019 14:13:10 +0800
Subject: [PATCH] 树列表 功能完善

---
 src/components/DividerCard.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/components/DividerCard.vue b/src/components/DividerCard.vue
index 99e6900..8783b1a 100644
--- a/src/components/DividerCard.vue
+++ b/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>
\ No newline at end of file

--
Gitblit v1.9.1