import React, { useEffect, useState, useRef } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { connect } from 'dva'; import { Steps, Button } from 'antd'; import styles from './Index.less'; const { Step } = Steps; // 时间节点 function TimeNode(props) { const { flow: { current, list, active }, isAuditor, onApprove, } = props; if (!list || list.FlowNodes?.length != 0) { return (
{list.FlowNodes.map(item => ( ))}
{isAuditor && active != 0 && ( <> )}
); } // else { // if (!flowDetail?.nodes) return; // const node = flowDetail.nodes.find(item => item.Id == nodeId); // return `当前节点:${node?.label || '-'}`; // } return null; } export default TimeNode;