| | |
| | | } |
| | | |
| | | render () { |
| | | const { config } = this.props |
| | | const { sourcelist, visible, source, dict, searches, loading } = this.state |
| | | |
| | | let addable = true |
| | | if (config.components && config.components.length === 1 && config.components[0].type === 'login') { |
| | | addable = false |
| | | } |
| | | |
| | | return ( |
| | | <div className="mob-datasource"> |
| | |
| | | </span> |
| | | </span> |
| | | ))} |
| | | <span className="mob-input-group-wrapper"> |
| | | {addable ? <span className="mob-input-group-wrapper"> |
| | | <span className="mob-input-wrapper"> |
| | | <span className="mob-input-insert" onClick={() => this.editDataSource()}> |
| | | <Icon type="plus" /> |
| | | </span> |
| | | </span> |
| | | </span> |
| | | </span> : null} |
| | | <Modal |
| | | wrapClassName="mob-datasource-verify-modal" |
| | | wrapClassName="mob-datasource-verify-modal popview-modal" |
| | | title={'数据源配置'} |
| | | visible={visible} |
| | | width={'75vw'} |