import * as React from "react"; import Item from "./Item"; import { ConfigConsumerProps } from "../Config"; interface IProps { /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; /** * 标题 * * @default "" **/ title?: React.ReactNode; /** * 列表数据源 * * @default [] **/ dataSource: React.ReactNode[]; /** * 自定义className * * @default "" **/ className?: string; /** * 自定义样式 * * @default **/ style?: React.CSSProperties; /** * 自定义渲染rowKey * * @default "" **/ rowKey?: ((item: any) => string) | string; /** * 自定义渲染方式 * * @default "" **/ renderItem?: (item: any, index: number) => React.ReactNode; } export default class List extends React.PureComponent { static Item: typeof Item; private keys; static defaultProps: { dataSource: never[]; title: string; }; constructor(props: any); renderItem: (item: any, index: number) => {} | null | undefined; renderList: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export {};