import React, {Component} from 'react'; import {Input, Radio, Collapse, Button} from 'antd'; const Panel = Collapse.Panel; class APIPathCard extends Component { constructor(props) { super(props); this.state = { configs: ['apiGWName', 'apiGWDesc'], apiGWName: 'default schema name', apiGWDesc: '', requestMethod: '' }; } switchConfig = (label) => { return (e) => { this.setState({ [label]: e.target.value }) }; }; render() { const customPanelStyle = { background: '#f7f7f7', borderRadius: 4, marginBottom: 24, border: 0, overflow: 'hidden', }; return (
{ this.state.configs.map(config => (
{config}:
)) }
requestMethod: get post
) } } export default APIPathCard;