import React from 'react' import { connect } from 'dva' import { Form, Input, Divider, Button, Icon, Collapse, Spin, Select, Checkbox } from 'antd' const { TextArea } = Input; // const ConfigForm = ({ dashboardDesigner, dispatch }) => { class ConfigForm extends React.Component { constructor(props) { super(props); this.state = { selectedDataSource: null, selectedColumn: null, activeKey: [], editing: false }; } addRelationColumn = () => { const { dispatch } = this.props; dispatch({ type: 'dashboardDesigner/addRelationColumn' }); } deleteRelationColumn = (e) => { const { dispatch } = this.props; const code = e.target.dataset.code; dispatch({ type: 'dashboardDesigner/deleteRelationColumn', code }); } render() { const { dashboardDesigner, dispatch } = this.props; const { activeKey, editing, selectedDataSource, selectedColumn } = this.state; const { relationColumns, dataSources, columnFetching } = dashboardDesigner; return
基础设置