Skip to content

Commit 3a581a9

Browse files
updated table loader
1 parent e34e635 commit 3a581a9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import { defaultTheme } from "@lowcoder-ee/constants/themeConstants";
4545
import { childrenToProps } from "@lowcoder-ee/comps/generators/multi";
4646
import { getVerticalMargin } from "@lowcoder-ee/util/cssUtil";
4747
import { TableSummary } from "./tableSummaryComp";
48+
import { default as LoadingOutlined } from "@ant-design/icons/LoadingOutlined";
4849

4950
export const EMPTY_ROW_KEY = 'empty_row';
5051

@@ -1017,13 +1018,17 @@ export function TableCompView(props: {
10171018
size={compChildren.size.getView()}
10181019
rowAutoHeight={rowAutoHeight}
10191020
tableLayout="fixed"
1020-
loading={
1021-
loading ||
1022-
// fixme isLoading type
1023-
(compChildren.showDataLoadSpinner.getView() &&
1024-
(compChildren.data as any).isLoading()) ||
1025-
compChildren.loading.getView()
1026-
}
1021+
loading={{
1022+
spinning: (
1023+
loading ||
1024+
// fixme isLoading type
1025+
(compChildren.showDataLoadSpinner.getView() &&
1026+
(compChildren.data as any).isLoading()) ||
1027+
compChildren.loading.getView()
1028+
),
1029+
indicator: <LoadingOutlined spin />,
1030+
size: 'large'
1031+
}}
10271032
onCellClick={(columnName: string, dataIndex: string) => {
10281033
comp.children.selectedCell.dispatchChangeValueAction({
10291034
name: columnName,

0 commit comments

Comments
 (0)