diff --git a/components/steps/demo/simple.md b/components/steps/demo/simple.md index f8b2540eff..5705b7da82 100644 --- a/components/steps/demo/simple.md +++ b/components/steps/demo/simple.md @@ -12,29 +12,24 @@ var Step = Steps.Step; var container = document.getElementById('components-steps-demo-simple'); var steps = [{ - status: 'finish', title: '已完成', description: '这里是多信息的描述啊' }, { - status: 'process', title: '进行中', description: '这里是多信息的耶哦耶哦哦耶哦耶' }, { - status: 'wait', title: '又一个待运行', description: '描述啊描述啊' }, { - status: 'wait', title: '待运行', description: '这里是多信息的描述啊' }].map(function(s, i) { return ( ); }); -React.render({steps}, container); +React.render({steps}, container); ```` diff --git a/components/steps/demo/step-next.md b/components/steps/demo/step-next.md index 5ac40920f6..16d882fa01 100644 --- a/components/steps/demo/step-next.md +++ b/components/steps/demo/step-next.md @@ -46,11 +46,10 @@ var MyForm = React.createClass({ var cs = this.state.currentStep; return (
当前正在执行第{cs + 1}步
-
+
{steps.map(function(s, i) { return i ? 'finish' : 'wait')} title={s.title} > })} diff --git a/components/steps/index.jsx b/components/steps/index.jsx index 76e667cec1..362b06234e 100644 --- a/components/steps/index.jsx +++ b/components/steps/index.jsx @@ -7,12 +7,14 @@ const AntSteps = React.createClass({ prefixCls: 'ant-steps', iconPrefix: 'ant', size: 'default', - maxDescriptionWidth: 100 + maxDescriptionWidth: 100, + current: 0 }; }, render() { return (