import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IProps { /** * 当前信息对象 * * **/ item: IItemInfo; /** * 当前索引值 * * **/ index: number; /** * 默认前缀 * * @default "lg" **/ prefixCls?: string; /** * 子内容 * **/ children?: React.ReactChild; /** * 自定义样式名称 * * @default "" **/ className?: string; /** * 是否为错误状态节点 * * @default false **/ error?: boolean; /** * 是否为成功状态节点 * * @default false **/ success?: boolean; } interface IItemInfo { time: string; message: string; } export default class TimelineItem extends React.PureComponent { static defaultProps: { className: string; }; renderTimelineItem: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export {};