New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeline design change feature #11490
Changes from 4 commits
a5978c3
07b7789
8abd49b
18d051e
3a25483
603ab8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
order: 3 | ||
title: | ||
zh-CN: 交替展现 | ||
en-US: Alternate | ||
--- | ||
|
||
## zh-CN | ||
|
||
内容在时间轴两侧轮流出现。 | ||
|
||
## en-US | ||
|
||
Alternate timeline. | ||
|
||
````jsx | ||
import { Timeline, Icon } from 'antd'; | ||
|
||
ReactDOM.render( | ||
<Timeline mode="alternate"> | ||
<Timeline.Item>Create a services site 2015-09-01</Timeline.Item> | ||
<Timeline.Item color="green">Solve initial network problems 2015-09-01</Timeline.Item> | ||
<Timeline.Item dot={<Icon type="clock-circle-o" style={{ fontSize: '16px' }} />}>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</Timeline.Item> | ||
<Timeline.Item color="red">Network problems being solved 2015-09-01</Timeline.Item> | ||
<Timeline.Item>Create a services site 2015-09-01</Timeline.Item> | ||
<Timeline.Item dot={<Icon type="clock-circle-o" style={{ fontSize: '16px' }} />}>Technical testing 2015-09-01</Timeline.Item> | ||
</Timeline>, | ||
mountNode); | ||
```` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
order: 4 | ||
title: | ||
zh-CN: 右侧时间轴点 | ||
en-US: Right alternate | ||
--- | ||
|
||
## zh-CN | ||
|
||
时间轴点可以在内容的右边。 | ||
|
||
## en-US | ||
|
||
Right alternate timeline. | ||
|
||
````jsx | ||
import { Timeline, Icon } from 'antd'; | ||
|
||
ReactDOM.render( | ||
<Timeline mode="right"> | ||
<Timeline.Item>Create a services site 2015-09-01</Timeline.Item> | ||
<Timeline.Item>Solve initial network problems 2015-09-01</Timeline.Item> | ||
<Timeline.Item dot={<Icon type="clock-circle-o" style={{ fontSize: '16px' }} />} color="red">Technical testing 2015-09-01</Timeline.Item> | ||
<Timeline.Item>Network problems being solved 2015-09-01</Timeline.Item> | ||
</Timeline>, | ||
mountNode); | ||
```` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ title: Timeline | |
| pending | 指定最后一个幽灵节点是否存在或内容 | boolean\|string\|ReactNode | false | | ||
| pendingDot | 当最后一个幽灵节点存在時,指定其时间图点 | \|string\|ReactNode | `<Icon type="loading" />` | | ||
| reverse | 节点排序 | boolean | false | | ||
| mode | By sending `alternate` the timeline will distribute the nodes to the left and right. | `standard` \| `alternate` | `standard` | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two standard should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And chinese goes to
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wow sorry, bad copy & paste. |
||
|
||
### Timeline.Item | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops