From 34343b2e8bd89d0e04ecb09121735de1035215d8 Mon Sep 17 00:00:00 2001 From: binhaoCen Date: Mon, 22 Jul 2019 11:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=88=86=E9=A1=B5=E5=99=A8=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=B7=BB=E5=8A=A0=E9=9D=9E=E5=BF=85?= =?UTF-8?q?=E5=A1=AB=E6=A0=87=E8=AF=86=20(#987)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/pagination.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/types/pagination.d.ts b/types/pagination.d.ts index 158470dfc..76bfa7c06 100644 --- a/types/pagination.d.ts +++ b/types/pagination.d.ts @@ -11,84 +11,84 @@ export declare class Pagination extends AntdComponent { * @default 0 * @type number */ - total: number; + total?: number; /** * default initial page number * @default 1 * @type number */ - defaultCurrent: number; + defaultCurrent?: number; /** * current page number * @type number */ - current: number; + current?: number; /** * default number of data items per page * @default 10 * @type number */ - defaultPageSize: number; + defaultPageSize?: number; /** * number of data items per page * @type number */ - pageSize: number; + pageSize?: number; /** * Whether to hide pager on single page * @default false * @type boolean */ - hideOnSinglePage: boolean; + hideOnSinglePage?: boolean; /** * determine whether pageSize can be changed * @default false * @type boolean */ - showSizeChanger: boolean; + showSizeChanger?: boolean; /** * specify the sizeChanger options * @default ['10', '20', '30', '40'] * @type string[] */ - pageSizeOptions: string[]; + pageSizeOptions?: string[]; /** * determine whether you can jump to pages directly * @default false * @type boolean */ - showQuickJumper: boolean; + showQuickJumper?: boolean; /** * to display the total number and range * @type Function */ - showTotal: (total: number, range: [number, number]) => any; + showTotal?: (total: number, range: [number, number]) => any; /** * specify the size of Pagination, can be set to small * @default '' * @type string */ - size: string; + size?: string; /** * whether to use simple mode * @type boolean */ - simple: boolean; + simple?: boolean; /** * to customize item innerHTML * @type Function */ - itemRender: (page: number, type: 'page' | 'prev' | 'next', originalElement: any) => VNode; + itemRender?: (page: number, type: 'page' | 'prev' | 'next', originalElement: any) => VNode; }