Add timeline component

This commit is contained in:
afc163 2015-09-01 11:47:12 +08:00
parent 37a9f72c0f
commit c5be535a3e
5 changed files with 49 additions and 0 deletions

View File

View File

View File

View File

@ -0,0 +1,35 @@
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;

View File

@ -0,0 +1,14 @@
# Timeline
- category: Components
- chinese: 时间轴
- type: 展示
---
垂直展示的时间流信息。
## 何时使用
- 当有一系列信息需要从上至下按时间排列时;
- 需要有一条时间轴进行视觉上的串联时;