fix: 修复接口定义表格加载数据时无蒙版的问题

修复接口定义表格加载数据时无蒙版的问题
This commit is contained in:
song-tianyang 2021-06-01 16:09:06 +08:00 committed by 刘瑞斌
parent 11ea449489
commit 883755ed4e
2 changed files with 8 additions and 2 deletions

View File

@ -14,6 +14,7 @@
:operators="tableOperatorButtons" operator-width="200px" :operators="tableOperatorButtons" operator-width="200px"
@refresh="initTable" @refresh="initTable"
@openCustomHeader="customHeader" @openCustomHeader="customHeader"
:table-is-loading="this.result.loading"
ref="apiDefinitionTable" ref="apiDefinitionTable"
> >
<template v-for="(item, index) in tableLabel"> <template v-for="(item, index) in tableLabel">

View File

@ -12,7 +12,7 @@
class="test-content adjust-table ms-table" class="test-content adjust-table ms-table"
:class="{'ms-select-all-fixed':showSelectAll}" :class="{'ms-select-all-fixed':showSelectAll}"
:height="screenHeight" :height="screenHeight"
v-loading="result.loading" v-loading="tableIsLoading"
ref="table" @row-click="handleRowClick"> ref="table" @row-click="handleRowClick">
<el-table-column v-if="enableSelection" width="50" type="selection"/> <el-table-column v-if="enableSelection" width="50" type="selection"/>
@ -80,7 +80,6 @@ export default {
return { return {
selectDataCounts: 0, selectDataCounts: 0,
selectRows: new Set(), selectRows: new Set(),
result: {},
selectIds: [] selectIds: []
}; };
}, },
@ -152,6 +151,12 @@ export default {
default() { default() {
return true; return true;
} }
},
tableIsLoading:{
type:Boolean,
default() {
return false;
}
} }
}, },
mounted() { mounted() {