antd-mobile
Version:
基于 React 的移动设计规范实现
54 lines (53 loc) • 1.51 kB
TypeScript
/// <reference types="react" />
import React from 'react';
import PaginationProps from './PropsType';
export default class Pagination extends React.Component<PaginationProps, any> {
static defaultProps: {
mode: string;
current: number;
simple: boolean;
onChange: () => void;
indicatorStyle: null;
styles: {
container: {
alignItems: string;
justifyContent: string;
};
numberStyle: {
flexDirection: string;
justifyContent: string;
};
totalStyle: {
fontSize: number;
color: string;
};
activeTextStyle: {
fontSize: number;
color: string;
};
indicatorStyle: {
flexDirection: string;
};
pointStyle: {
width: number;
height: number;
borderRadius: number;
backgroundColor: string;
};
pointActiveStyle: {
backgroundColor: string;
};
spaceStyle: {
marginHorizontal: number;
marginVertical: number;
};
};
};
static contextTypes: {
antLocale: any;
};
constructor(props: any);
componentWillReceiveProps(nextProps: any): void;
onChange(p: any): void;
render(): JSX.Element;
}