ant-design/components/timeline/index.jsx

36 lines
599 B
React
Raw Normal View History

2015-09-01 11:47:12 +08:00
import React from 'react';
let AntTimeline = React.createClass({
getDefaultProps() {
return {
prefixCls: 'ant-timeline'
};
},
render() {
return (
<ul className={this.props.prefixCls}>
{this.props.children}
</ul>
);
}
});
AntTimeline.Item = React.createClass({
getDefaultProps() {
return {
prefixCls: 'ant-timeline',
color: 'blue',
dashed: false
};
},
render() {
return (
<li className={this.props.prefixCls + '-item'}>
{this.props.children}
</li>
);
}
});
export default AntTimeline;