-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix tailWidth(especially for labelPlacement="vertical")
- support progressDot
- Loading branch information
Showing
5 changed files
with
169 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
require('rc-steps/assets/index.less'); | ||
require('rc-steps/assets/iconfont.less'); | ||
|
||
const React = require('react'); | ||
const ReactDOM = require('react-dom'); | ||
const Steps = require('rc-steps'); | ||
|
||
const container = document.getElementById('__react-content'); | ||
|
||
const steps = [{ | ||
title: '已完成', | ||
description: '这里是多信息的描述啊描述啊描述啊描述啊哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶', | ||
}, { | ||
title: '进行中', | ||
description: '这里是多信息的描述啊描述啊描述啊描述啊哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶', | ||
}, { | ||
title: '待运行', | ||
description: '这里是多信息的描述啊描述啊描述啊描述啊哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶', | ||
}, { | ||
title: '待运行', | ||
description: '这里是多信息的描述啊描述啊描述啊描述啊哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶', | ||
}, { | ||
title: '待运行', | ||
description: '这里是多信息的描述啊描述啊描述啊描述啊哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶哦耶', | ||
}].map((s, i) => { | ||
return ( | ||
<Steps.Step | ||
key={i} | ||
status={s.status} | ||
title={s.title} | ||
description={s.description} | ||
/> | ||
); | ||
}); | ||
|
||
ReactDOM.render( | ||
<Steps progressDot current={1}> | ||
{steps} | ||
</Steps> | ||
, container); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
这个导致移动端有问题了。为什么要有 width 设置?
![image](https://cloud.githubusercontent.com/assets/2011119/22181982/07dd9128-e0d4-11e6-866d-2fadfad7252b.png)
http://beta.antm.alipay.net/components/steps/