Browse Source

fix(smart-table): 修复加载状态不生效的问题

shizhongming 2 years ago
parent
commit
f8a1ffa4b0
  1. 3
      src/components/SmartTable/src/SmartTable.tsx

3
src/components/SmartTable/src/SmartTable.tsx

@ -322,6 +322,7 @@ export default defineComponent({
tableColumns: computedTableColumns,
pagerConfig: getPaginationInfo,
setColumnSortConfig,
tableLoading: getLoading,
};
},
render() {
@ -405,11 +406,13 @@ const renderTable = (instance) => {
id,
tableColumns,
pagerConfig,
tableLoading,
} = instance;
const tableProps = {
...getTableBindValues,
columns: tableColumns,
pagerConfig,
loading: tableLoading,
};
const result = [
<vxe-grid ref="tableElRef" {...tableProps}>

Loading…
Cancel
Save