refactor(接口测试): 修复修改表头设置调整字段顺序没立即生效的缺陷 (#12276)

--bug=1011885 --user=王孝刚 【接口测试】接口定义 - CASE 列表,表头设置调整字段顺序没生效
https://www.tapd.cn/55049933/s/1129312

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-04-02 12:34:51 +08:00 committed by GitHub
parent 707a1c295e
commit b51bc1e444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 20 deletions

View File

@ -19,6 +19,7 @@
@header-dragend="headerDragend"
@cell-mouse-enter="showPopover"
@row-click="handleRowClick"
:key="tableActive"
ref="table">
<el-table-column
@ -165,7 +166,8 @@ export default {
selectRows: new Set(),
selectIds: [],
// hasBatchTipShow: false,
defaultSort: {}
defaultSort: {},
tableActive: true
};
},
props: {
@ -479,8 +481,10 @@ export default {
this.$refs.table.toggleRowSelection();
},
reloadTable() {
this.tableActive = false;
this.$nextTick(() => {
this.doLayout();
this.tableActive = true;
});
},
addPaddingColClass({column}) {