feat: scope blacklists and paginate phone segments
This commit is contained in:
@@ -8,7 +8,7 @@ type QueryPanelProps = {
|
||||
};
|
||||
|
||||
type PaginationProps = {
|
||||
total: number;
|
||||
total?: number;
|
||||
page?: number;
|
||||
previousDisabled?: boolean;
|
||||
nextDisabled?: boolean;
|
||||
@@ -42,7 +42,7 @@ export function Pagination({
|
||||
}: PaginationProps) {
|
||||
return (
|
||||
<div className="ui-pagination">
|
||||
<span>显示 {total} 条记录</span>
|
||||
{typeof total === 'number' ? <span>显示 {total} 条记录</span> : <span />}
|
||||
<div>
|
||||
<Button disabled={previousDisabled} onClick={onPrevious} size="sm" variant="ghost">上一页</Button>
|
||||
<Button size="sm" variant="secondary">{page}</Button>
|
||||
|
||||
Reference in New Issue
Block a user