Merge remote-tracking branch 'upstream/component-timeline' into component-timeline

This commit is contained in:
zhujun24 2015-09-01 15:41:53 +08:00
commit f34ed22d1a
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: 展示
---
垂直展示的时间流信息。
## 何时使用
- 当有一系列信息需要从上至下按时间排列时;
- 需要有一条时间轴进行视觉上的串联时;