diff --git a/components/steps/demo/step-next.md b/components/steps/demo/step-next.md index 5efc9d7fb6..7c37daefa4 100644 --- a/components/steps/demo/step-next.md +++ b/components/steps/demo/step-next.md @@ -50,20 +50,20 @@ class App extends React.Component { {steps.map(item => )} -
{steps[this.state.current].content}
+
{steps[current].content}
{ - this.state.current < steps.length - 1 + current < steps.length - 1 && } { - this.state.current === steps.length - 1 + current === steps.length - 1 && } { - this.state.current > 0 + current > 0 &&