import ConfigProvider from '../config-provider'; import React, { Component } from 'react'; import cls from 'classnames'; import { ItemProps as NextItemProps, TimelineProps as NextTimelineProps } from '@alifd/next/types/timeline'; import { Timeline as NextTimeline } from '@alifd/next'; interface TimelineAddProps { disabled?: boolean; contentLeft?: boolean | string; } interface TimelineProps extends NextTimelineProps { } interface ItemProps extends NextItemProps, TimelineAddProps { } class TimelineItem extends Component { render() { const { prefix = 'next-', disabled, className, timeLeft, content, contentLeft, ...otherProps } = this.props; // const { prefix = 'next-', disabled, className, ...otherProps } = this.props; return ( ); } } class Timeline extends Component { static Item = ConfigProvider.config(TimelineItem); render() { return ( ); } } export default ConfigProvider.config(Timeline);