zent
Version:
一套前端设计语言和基于React的实现
27 lines (26 loc) • 768 B
TypeScript
import { PureComponent } from 'react';
import { TimelineItem, ITimelineItemProps } from './Item';
import { TimelineLegend } from './Dot';
export interface ITimelineArrayItem extends ITimelineItemProps {
id?: string;
percent?: number;
}
export interface ITimelineProps {
size?: number | string;
timeline?: ITimelineArrayItem[];
type?: 'vertical' | 'horizontal';
className?: string;
style?: React.CSSProperties;
}
export declare class Timeline extends PureComponent<ITimelineProps> {
static defaultProps: {
type: string;
size: string;
style: {};
};
static Item: typeof TimelineItem;
static Legend: typeof TimelineLegend;
renderChildren(): any;
render(): JSX.Element;
}
export default Timeline;