king
2022-07-12 88756147643a1d4ffb840797b96ea44462b0551d
src/menu/components/form/step-form/index.jsx
File was renamed from src/menu/components/form/normal-form/index.jsx
@@ -31,7 +31,7 @@
const { confirm } = Modal
class PropCardEditComponent extends Component {
class StepFormComponent extends Component {
  static propTpyes = {
    card: PropTypes.object,
    deletecomponent: PropTypes.func,
@@ -660,6 +660,9 @@
  }
  pasteForm = (res) => {
    if (res.subtype === 'simpleform') {
      res = res.subcards[0]
    }
    if (res.subButton) {
      let card = fromJS(this.state.card).toJS()
@@ -759,7 +762,7 @@
              <EditOutlined style={{color: '#1890ff'}} title="编辑"/>
            </NormalForm>
            <CopyComponent type="stepform" card={card}/>
            <PasteComponent config={card} options={['form', 'formgroup']} updateConfig={this.pasteForm} />
            <PasteComponent config={card} options={['form', 'formgroup', 'simpleform']} updateConfig={this.pasteForm} />
            <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle}/>
            <UserComponent config={card}/>
            <DeleteOutlined className="close" title="删除组件" onClick={() => this.props.deletecomponent(card.uuid)} />
@@ -842,4 +845,4 @@
  }
}
export default PropCardEditComponent
export default StepFormComponent