Browse Source

解决表格渲染的问题

master
dai 3 years ago
parent
commit
9ae0d14d86
  1. 11
      src/views/modules/cpts/base/index.vue

11
src/views/modules/cpts/base/index.vue

@ -93,10 +93,7 @@
</el-form>
</div>
<div
class="div_table"
:style="{ height: maxTableHeight + 130 + 'px' }"
>
<div class="div_table" :style="{ height: maxTableHeight + 130 + 'px' }">
<div class="div_btn">
<el-button
class="diy-button--add"
@ -142,6 +139,7 @@
</div>
<el-table
ref="ref_table"
:data="tableData"
border
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
@ -447,6 +445,11 @@ export default {
this.computeSearchHeight();
},
activated() {
console.log('-------------activated')
this.$refs["ref_table"].doLayout();
},
methods: {
computeSearchHeight() {
this.ref_search_height = this.$refs["ref_search"].clientHeight;

Loading…
Cancel
Save