@alicloud/console-components
Version:
Alibaba Cloud React Components
78 lines (77 loc) • 4.83 kB
TypeScript
import React from 'react';
import type { PaginationProps } from '@alifd/next/types/pagination';
declare const _default: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<PaginationProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
readonly props: Readonly<import("@alifd/next/types/util").RequiredSome<PaginationProps, "type" | "locale" | "prefix" | "pure" | "rtl" | "onChange" | "size" | "shape" | "total" | "pageSize" | "defaultCurrent" | "pageShowCount" | "pageSizeSelector" | "pageSizeList" | "pageNumberRender" | "pageSizePosition" | "useFloatLayout" | "onPageSizeChange" | "hideOnlyOnePage" | "showJump">> & Readonly<Pick<{
prefix: string;
pure: boolean;
rtl: boolean;
locale: Partial<{
prev: string;
next: string;
goTo: string;
page: string;
go: string;
total: string;
labelPrev: string;
labelNext: string;
inputAriaLabel: string;
selectAriaLabel: string;
pageSize: string;
}> & {
momentLocale?: string;
};
type: string;
shape: string;
size: string;
defaultCurrent: number;
onChange: () => void;
pageSize: number;
pageSizeSelector: boolean;
pageSizeList: number[];
pageSizePosition: string;
onPageSizeChange: () => void;
useFloatLayout: boolean;
total: number;
pageShowCount: number;
hideOnlyOnePage: boolean;
showJump: boolean;
pageNumberRender: (index: number) => React.ReactNode;
}, never>>;
handleJump: (e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
onPageItemClick(page: number, e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>): void;
onInputChange(value: string): void;
onSelectSize(pageSize: number): void;
renderPageTotal(): React.JSX.Element;
renderPageItem(index: number): React.JSX.Element;
renderPageFirst(current: number): React.JSX.Element;
renderPageLast(current: number, totalPage: number): React.JSX.Element;
renderPageEllipsis(idx: number): React.JSX.Element;
renderPageJump(): React.JSX.Element[];
renderPageDisplay(current: number, totalPage: number): React.JSX.Element;
renderPageList(current: number, totalPage: number): React.JSX.Element;
renderPageSizeSelector(): React.JSX.Element;
renderPageSizeFilter(): React.JSX.Element;
renderPageSizeDropdown(): React.JSX.Element;
render(): React.JSX.Element;
context: any;
setState<K extends keyof import("@alifd/next/types/pagination/types").PaginationState>(state: import("@alifd/next/types/pagination/types").PaginationState | ((prevState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>, props: Readonly<PaginationProps>) => import("@alifd/next/types/pagination/types").PaginationState | Pick<import("@alifd/next/types/pagination/types").PaginationState, K>) | Pick<import("@alifd/next/types/pagination/types").PaginationState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
state: Readonly<import("@alifd/next/types/pagination/types").PaginationState>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<PaginationProps>, nextState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<PaginationProps>, prevState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>): any;
componentDidUpdate?(prevProps: Readonly<PaginationProps>, prevState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<PaginationProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<PaginationProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<PaginationProps>, nextState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<PaginationProps>, nextState: Readonly<import("@alifd/next/types/pagination/types").PaginationState>, nextContext: any): void;
}, {}>, {}>;
export default _default;
export type { PaginationProps };