feat:table height auto

3.x
smallwei 3 years ago
parent f446988204
commit d0f062e783
  1. 9
      src/views/system/param.vue

@ -50,6 +50,7 @@
v-loading="loading" v-loading="loading"
@selection-change="selectionChange" @selection-change="selectionChange"
:data="data" :data="data"
:height="height"
style="width: 100%" style="width: 100%"
:border="option.border"> :border="option.border">
<el-table-column type="selection" <el-table-column type="selection"
@ -94,8 +95,11 @@
</el-table> </el-table>
</el-row> </el-row>
<el-row> <el-row>
<div class="avue-crud__pagination"
style="width:100%">
<!-- 分页模块 --> <!-- 分页模块 -->
<el-pagination align="right" <el-pagination class="avue-crud__pagination"
align="right"
background background
@size-change="sizeChange" @size-change="sizeChange"
@current-change="currentChange" @current-change="currentChange"
@ -105,6 +109,7 @@
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="page.total"> :total="page.total">
</el-pagination> </el-pagination>
</div>
</el-row> </el-row>
<!-- 表单模块 --> <!-- 表单模块 -->
<el-dialog :title="title" <el-dialog :title="title"
@ -165,6 +170,7 @@ import { mapGetters } from "vuex";
export default { export default {
data () { data () {
return { return {
height: 0,
// //
title: '', title: '',
// //
@ -265,6 +271,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.height = this.setPx(document.body.clientHeight - 400)
this.init(); this.init();
this.onLoad(this.page); this.onLoad(this.page);
}, },

Loading…
Cancel
Save