king
2021-08-14 97b0c90b3a99c7483d61ad4945b6c01fa10224ec
src/components/normalform/index.jsx
@@ -55,6 +55,12 @@
    })
  }
  cancel = () => {
    this.setState({ visible: false })
    this.props.cancel && this.props.cancel()
  }
  render () {
    const { title, width, children } = this.props
    const { visible, dict, formlist } = this.state
@@ -70,7 +76,7 @@
          maskClosable={false}
          okText={dict['model.confirm']}
          onOk={this.submit}
          onCancel={() => { this.setState({ visible: false }) }}
          onCancel={this.cancel}
          destroyOnClose
        >
          <ModalForm