From 88756147643a1d4ffb840797b96ea44462b0551d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 七月 2022 17:19:26 +0800
Subject: [PATCH] 2022-07-12

---
 src/menu/components/form/step-form/index.jsx |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/form/normal-form/index.jsx b/src/menu/components/form/step-form/index.jsx
similarity index 98%
rename from src/menu/components/form/normal-form/index.jsx
rename to src/menu/components/form/step-form/index.jsx
index 43f38bd..0a05e41 100644
--- a/src/menu/components/form/normal-form/index.jsx
+++ b/src/menu/components/form/step-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
\ No newline at end of file
+export default StepFormComponent
\ No newline at end of file

--
Gitblit v1.8.0