Timeline.d.ts 659 B

1234567891011121314151617181920
  1. import * as React from 'react';
  2. import type { TimelineItemProps } from './TimelineItem';
  3. export interface TimelineProps {
  4. prefixCls?: string;
  5. className?: string;
  6. rootClassName?: string;
  7. /** 指定最后一个幽灵节点是否存在或内容 */
  8. pending?: React.ReactNode;
  9. pendingDot?: React.ReactNode;
  10. style?: React.CSSProperties;
  11. reverse?: boolean;
  12. mode?: 'left' | 'alternate' | 'right';
  13. items?: TimelineItemProps[];
  14. children?: React.ReactNode;
  15. }
  16. type CompoundedComponent = React.FC<TimelineProps> & {
  17. Item: React.FC<TimelineItemProps>;
  18. };
  19. declare const Timeline: CompoundedComponent;
  20. export default Timeline;