import { ReactNode } from 'react'; import { ProTagItem } from '../field'; export declare type ProTimeLineItemStatus = 'success' | 'fail' | 'process' | 'warning' | 'wait'; export declare type FoldProps = { /** * 折叠区域 */ foldArea: [number, number]; /** * 是否展示折叠图标 */ foldShow: boolean; }; export declare type ProTimeLineProps = { /** * 时间线:节点展示类型 */ shape?: 'circle' | 'dot'; /** * 内部渲染自组件 */ items?: ProTimeLineItemProps[]; /** * 时间线: 自定义折叠选项 */ fold?: FoldProps[]; /** * 是否为评论型 timeline */ comment?: boolean; children?: ReactNode; }; export declare type ProTimeLineItemProps = { /** * 是否为评论型 timeline */ _comment?: boolean; /** * 时间线:节点展示类型 */ _shape?: 'circle' | 'dot'; /** * 节点状态 */ status?: string | ProTimeLineItemStatus; /** * 图标 */ icon?: string; /** * 节点的内容 */ content?: ReactNode; /** * 节点标题 */ title?: ReactNode; /** * 自定义渲染 */ dotRender?: (index?: number, status?: string) => ReactNode; /** * 节点副标题 * @deprecated 弃用,请使用 `time` */ subTitle?: ReactNode; /** * 右侧时间 */ time?: ReactNode; /** * 节点对应描述 */ discription?: ReactNode; /** * 节点的标签 */ tags?: ProTagItem[] | ReactNode; /** * 左侧展示时间 */ timeLeft?: ReactNode; /** * 头像 */ image?: string | ReactNode; /** * animation 动画 */ animation?: boolean; /** * 卡片是否可折叠 */ collapsible?: boolean; /** * 默认是否折叠,用于非受控模式 */ defaultCollapsed?: boolean; /** * 是否折叠,受控模式 */ collapsed?: boolean; /** * 折叠状态改变的回调函数 */ onCollapse?: (collapsed: boolean) => void; };