king
2020-09-18 51a60b5cb00fdeaf9e42c29341242460bf2154e8
src/views/menudesign/index.jsx
@@ -263,24 +263,6 @@
    })
  }
  deleteCard = (id) => {
    let _this = this
    let config = fromJS(this.state.config).toJS()
    confirm({
      title: '确定删除元素吗?',
      content: '',
      onOk() {
        config.components = config.components.filter(item => item.uuid !== id)
        _this.setState({
          config: config
        })
      },
      onCancel() {}
    })
  }
  editCard = (element) => {
    this.setState({
      editElem: element
@@ -406,8 +388,7 @@
                    <Button type="primary" onClick={this.submitConfig} loading={this.state.menuloading}>{dict['mob.save']}</Button>
                  </div>
                } style={{ width: '100%' }}>
                  {/* {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} deleteCard={this.deleteCard} /> : null} */}
                  {config && config.components ? <MenuShell name="Glass" menu={config} handleList={this.updateConfig} deleteCard={this.deleteCard} /> : null}
                  {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}
                </Card>
              </div>
            </div>