Content-Length: 268836 | pFad | http://github.com/lowcoder-org/lowcoder/commit/d55f4ce065d4340d2c51c8a4d52b0bd225304e77

70 avoid hiding table toolbar on hiding all columns · lowcoder-org/lowcoder@d55f4ce · GitHub
Skip to content

Commit d55f4ce

Browse files
avoid hiding table toolbar on hiding all columns
1 parent 58be61e commit d55f4ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,13 @@ export const TableCompView = React.memo((props: {
10441044
}
10451045

10461046
if (antdColumns.length === 0) {
1047-
return <EmptyContent text={trans("table.emptyColumns")} />;
1047+
return (
1048+
<div>
1049+
{toolbar.position === "above" && !hideToolbar && toolbarView}
1050+
<EmptyContent text={trans("table.emptyColumns")} />
1051+
{toolbar.position === "below" && !hideToolbar && toolbarView}
1052+
</div>
1053+
);
10481054
}
10491055

10501056
const hideScrollbar = !showHorizontalScrollbar && !showVerticalScrollbar;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/d55f4ce065d4340d2c51c8a4d52b0bd225304e77

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy