瀏覽代碼

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

shizhongming 2 年之前
父節點
當前提交
f8a1ffa4b0
共有 1 個文件被更改,包括 3 次插入0 次删除
  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}>