|
@@ -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;
|