|
|
@ -10,14 +10,15 @@ export default class TimelineItem extends React.Component { |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
const { prefixCls, color, last, children, pending } = this.props; |
|
|
|
const { prefixCls, color, last, children, pending, className, ...restProps } = this.props; |
|
|
|
const itemClassName = classNames({ |
|
|
|
[`${prefixCls}-item`]: true, |
|
|
|
[`${prefixCls}-item-last`]: last, |
|
|
|
[`${prefixCls}-item-pending`]: pending, |
|
|
|
[className]: className, |
|
|
|
}); |
|
|
|
return ( |
|
|
|
<li className={itemClassName}> |
|
|
|
<li {...restProps} className={itemClassName}> |
|
|
|
<div className={`${prefixCls}-item-tail`} /> |
|
|
|
<div className={`${prefixCls}-item-head ${prefixCls}-item-head-${color}`} /> |
|
|
|
<div className={`${prefixCls}-item-content`}>{children}</div> |
|
|
|