guhongwei před 4 roky
rodič
revize
b59365e286
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      src/views/adminCenter/adminCommunity.vue

+ 7 - 1
src/views/adminCenter/adminCommunity.vue

@@ -13,6 +13,8 @@
           <template v-for="(i, index) in list">
             <item :key="`list${index}`" :data="i"></item>
           </template>
+        </el-col>
+        <el-col :span="24" class="page">
           <van-sticky container="list" :offset-top="clientHeight">
             <page :total="total" :limit="limit" @search="search"></page>
           </van-sticky>
@@ -51,7 +53,7 @@ export default {
     this.search();
   },
   mounted() {
-    let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 90;
+    let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 130;
     this.$set(this, `clientHeight`, clientHeight);
   },
   methods: {
@@ -91,6 +93,10 @@ export default {
     overflow-x: hidden;
     overflow-y: auto;
   }
+  .page {
+    height: 40px;
+    overflow: hidden;
+  }
   .foot {
     height: 50px;
     overflow: hidden;