Pārlūkot izejas kodu

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

shizhongming 2 gadi atpakaļ
vecāks
revīzija
f8a1ffa4b0
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/components/SmartTable/src/SmartTable.tsx

+ 3 - 0
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}>