import React, {Component} from 'react'; import {Input, Select, Button, Row, Col} from 'antd'; const Option = Select.Option; class TencentConfig extends Component { constructor(props) { super(props); this.state = { config: props.configs.find(obj => obj.name === props.currentConfig) || { name: '', schemas: [], cloudServer: '', database: '', configLocal: {} } }; } switchCS = (value) => { this.setState({ config: { ...this.state.config, cloudServer: value } }) }; switchConfigLocal = (label) => { return (e) => { this.setState({ config: { ...this.state.config, configLocal: {...this.state.config.configLocal, [label]: e.target.value} } }) }; }; switchDataBase = (value) => { this.setState({ config: { ...this.state.config, database: value } }) }; componentWillReceiveProps(next) { this.setState({ config: next.configs.find(obj => obj.name === next.currentConfig) || { name: '', schemas: [], cloudServer: '', database: '', configLocal: {} } }); }; render() { return (
{ this.state.config.name ? '' :

how about create a new one

}
Cloud Config

Cloud Server providers

Serverless Cloud Function

secretID:
secretKey:

API

secretID:
secretKey:
Database Config
) } } export default TencentConfig;