steps icon indicating copy to clipboard operation
steps copied to clipboard

previous step text

Open lee-corey opened this issue 5 years ago • 1 comments

Can I show also text in the circle of the previous steps? It is not showing the text(1,2) of previous steps.

lee-corey avatar Aug 14 '19 03:08 lee-corey

@MebDevelop I would like to control this too!

For now, you can set the status of each step like:

let currentStepId = 0;

<Steps labelPlacement="vertical" current={currentStepId}>
  {renderSteps()}
</Steps>

renderSteps() {
  let steps = [0, 1, 2, 3, 4, 5];

  return steps.map((item, index)=> {
    let status = item == currentStepId ? 'process' : 'wait';

    return <Step key={"step" + index} status={status} />
  });
}

thiagocoelho avatar Mar 20 '20 18:03 thiagocoelho