提交 c5be535a 编写于 作者: A afc163

Add timeline component

上级 37a9f72c
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;
# Timeline
- category: Components
- chinese: 时间轴
- type: 展示
---
垂直展示的时间流信息。
## 何时使用
- 当有一系列信息需要从上至下按时间排列时;
- 需要有一条时间轴进行视觉上的串联时;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册