diff --git a/components/timeline/Timeline.jsx b/components/timeline/Timeline.jsx index 5af678d587..3db9e4ac72 100644 --- a/components/timeline/Timeline.jsx +++ b/components/timeline/Timeline.jsx @@ -8,14 +8,15 @@ export default class Timeline extends React.Component { } render() { - const { prefixCls, children, pending } = this.props; + const { prefixCls, children, pending, className, ...restProps } = this.props; const pendingNode = typeof pending === 'boolean' ? null : pending; - const className = classNames({ + const classString = classNames({ [prefixCls]: true, [`${prefixCls}-pending`]: !!pending, + [className]: className, }); return ( -