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

Loading…
Cancel
Save