mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 06:58:58 +08:00
feat: enable pagination for service listing,key operations,explorer table and dashboard table (#5625)
This commit is contained in:
parent
16dc90bbd1
commit
a5d5800871
@ -164,6 +164,12 @@ function TopOperationsTable({
|
|||||||
|
|
||||||
const downloadableData = convertedTracesToDownloadData(data);
|
const downloadableData = convertedTracesToDownloadData(data);
|
||||||
|
|
||||||
|
const paginationConfig = {
|
||||||
|
pageSize: 10,
|
||||||
|
showSizeChanger: false,
|
||||||
|
hideOnSinglePage: true,
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="top-operation">
|
<div className="top-operation">
|
||||||
<div className="top-operation--download">
|
<div className="top-operation--download">
|
||||||
@ -181,6 +187,7 @@ function TopOperationsTable({
|
|||||||
tableLayout="fixed"
|
tableLayout="fixed"
|
||||||
dataSource={data}
|
dataSource={data}
|
||||||
rowKey="name"
|
rowKey="name"
|
||||||
|
pagination={paginationConfig}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -48,6 +48,12 @@ export function QueryTable({
|
|||||||
|
|
||||||
const tableColumns = modifyColumns ? modifyColumns(newColumns) : newColumns;
|
const tableColumns = modifyColumns ? modifyColumns(newColumns) : newColumns;
|
||||||
|
|
||||||
|
const paginationConfig = {
|
||||||
|
pageSize: 10,
|
||||||
|
showSizeChanger: false,
|
||||||
|
hideOnSinglePage: true,
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="query-table">
|
<div className="query-table">
|
||||||
{isDownloadEnabled && (
|
{isDownloadEnabled && (
|
||||||
@ -64,6 +70,7 @@ export function QueryTable({
|
|||||||
tableLayout="fixed"
|
tableLayout="fixed"
|
||||||
dataSource={newDataSource}
|
dataSource={newDataSource}
|
||||||
scroll={{ x: true }}
|
scroll={{ x: true }}
|
||||||
|
pagination={paginationConfig}
|
||||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user