feat:table height auto

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

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

Loading…
Cancel
Save