// 测试集合中的环境切换 import React from 'react'; import PropTypes from 'prop-types'; import { Select, Row, Col, Collapse, Icon, Tooltip } from 'antd'; const Option = Select.Option; const Panel = Collapse.Panel; import './index.scss'; export default class CaseEnv extends React.Component { constructor(props) { super(props); } static propTypes = { envList: PropTypes.array, currProjectEnvChange: PropTypes.func, changeClose: PropTypes.func, collapseKey: PropTypes.any, envValue: PropTypes.object }; callback = key => { this.props.changeClose && this.props.changeClose(key); }; render() { return ( {' '} 选择测试用例环境 {' '} {' '} } key="1" >
{this.props.envList.length > 0 && (
{this.props.envList.map(item => { return ( {item.name} ); })}
)}
); } }