king
2020-08-09 ce2b708f61de1855771d78f35309bd77df9d3b15
src/mob/datasource/index.jsx
@@ -107,7 +107,13 @@
  }
  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">
@@ -122,15 +128,15 @@
            </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'}