import React from 'react'; import { Tooltip } from 'antd'; import './index.less'; function Step(props) { const { list = [], step = 1, onClick, message, maxStep } = props; return (
{list.map((item, index) => { const info =
= maxStep ? 'trail' : ''}`} onClick={() => { if ((maxStep && index < maxStep) || !maxStep) if (onClick) onClick(index + 1); }}> {item}
; if ((maxStep && index < maxStep) || !maxStep) { return info; } return {info} ; })}
); } Step.propTypes = {}; export default Step;