From 76a4300654a18d228838c3f27455dc8e7a8cd616 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 15 一月 2021 17:04:42 +0800
Subject: [PATCH] Merge branch 'master' into bms

---
 src/menu/components/card/cardcellcomponent/dragaction/index.jsx |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/dragaction/index.jsx b/src/menu/components/card/cardcellcomponent/dragaction/index.jsx
index 19161bc..c90814c 100644
--- a/src/menu/components/card/cardcellcomponent/dragaction/index.jsx
+++ b/src/menu/components/card/cardcellcomponent/dragaction/index.jsx
@@ -8,7 +8,7 @@
 import Action from './action'
 import './index.scss'
 
-const Container = ({list, fields, handleList, handleMenu, deleteMenu, profileAction, handleStyle, updateMarks, dropButton, handleSubConfig }) => {
+const Container = ({list, parent, fields, handleList, handleMenu, deleteMenu, profileAction, handleStyle, updateMarks, dropButton, handleSubConfig }) => {
   const [cards, setCards] = useState(list)
   const moveCard = (id, atIndex) => {
     const { card, index } = findCard(id)
@@ -38,14 +38,16 @@
     let copycard = fromJS(card).toJS()
     let _cards = fromJS(cards).toJS()
 
-    copycard.uuid = Utils.getuuid()
     copycard.copyType = 'customCardElement'
     copycard.focus = true
 
-    let _val = ''
+    let _val = fromJS(copycard).toJS()
+
+    copycard.uuid = Utils.getuuid()
+    copycard.originCard = card
 
     try {
-      _val = window.btoa(window.encodeURIComponent(JSON.stringify(copycard)))
+      _val = window.btoa(window.encodeURIComponent(JSON.stringify(_val)))
     } catch {
       console.warn('Stringify Failure')
       _val = ''
@@ -78,9 +80,7 @@
 
   const doubleClickCard = id => {
     const { card } = findCard(id)
-    if (card.OpenType === 'pop') {
-      handleSubConfig(card)
-    }
+    handleSubConfig(card)
   }
 
   const delCard = id => {
@@ -106,6 +106,7 @@
               id={card.uuid}
               key={card.uuid}
               card={card}
+              parent={parent}
               moveCard={moveCard}
               editCard={editCard}
               changeStyle={changeStyle}
@@ -121,6 +122,7 @@
               id={card.uuid}
               key={card.uuid}
               card={card}
+              parent={parent}
               fields={fields}
               moveCard={moveCard}
               copyCard={copyCard}

--
Gitblit v1.8.0