fastlion-amis
Version:
一种MIS页面生成工具
68 lines (67 loc) • 1.91 kB
TypeScript
import React from 'react';
import { RendererProps } from '../factory';
import { BaseSchema, SchemaCollection } from '../Schema';
import { IPaginationStore } from '../store/pagination';
/**
* 分页容器功能性渲染器。详情请见:https://baidu.gitee.io/amis/docs/components/pagination-wrapper
*/
export interface PaginationWrapperSchema extends BaseSchema {
/**
* 指定为分页容器功能性渲染器
*/
type: 'pagination-wrapper';
/**
* 是否显示快速跳转输入框
*/
showPageInput?: boolean;
/**
* 最多显示多少个分页按钮。
*
* @default 5
*/
maxButtons?: number;
/**
* 输入字段名
*
* @default items
*/
inputName?: string;
/**
* 输出字段名
*
* @default items
*/
outputName?: string;
/**
* 每页显示多条数据。
* @default 10
*/
perPage?: number;
/**
* 分页显示位置,如果配置为 none 则需要自己在内容区域配置 pagination 组件,否则不显示。
*/
position?: 'top' | 'bottom' | 'none';
/**
* 内容区域
*/
body?: SchemaCollection;
}
export interface PaginationWrapProps extends RendererProps, Omit<PaginationWrapperSchema, 'type' | 'className'> {
inputName: string;
outputName: string;
perPage: number;
store: IPaginationStore;
}
export declare class PaginationWrapper extends React.Component<PaginationWrapProps> {
static defaultProps: {
inputName: string;
outputName: string;
perPage: number;
position: string;
};
constructor(props: PaginationWrapProps);
componentDidUpdate(prevProps: PaginationWrapProps): void;
render(): JSX.Element;
}
export declare class PaginationWrapperRenderer extends PaginationWrapper {
}