From 1c39627e944f0a2a80023dba48699c45da66dd53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=87=91=E9=BE=99?= Date: Sun, 11 Oct 2020 23:33:18 +0800 Subject: [PATCH] bug: clone data err --- src/pages/editor/SourceBox.tsx | 10 +++++----- src/pages/editor/index.less | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/editor/SourceBox.tsx b/src/pages/editor/SourceBox.tsx index 8f9aea6..2548829 100644 --- a/src/pages/editor/SourceBox.tsx +++ b/src/pages/editor/SourceBox.tsx @@ -235,7 +235,7 @@ const SourceBox = memo((props: SourceBoxProps) => { /> - {clonePointData.length > 0 ? ( + {pointData.length > 0 ? ( { onDragStart={onDragStart} onResizeStop={onResizeStop} > - {clonePointData.map(value => ( + {pointData.map(value => (
handleCurrentCard(e, true, value.id)} > -
@@ -264,7 +263,7 @@ const SourceBox = memo((props: SourceBoxProps) => { -
+
*/} ))}
@@ -397,6 +396,7 @@ const SourceBox = memo((props: SourceBoxProps) => { pointData, scaleNum, setDragState, + clonePointData, ]); return <>{render}; diff --git a/src/pages/editor/index.less b/src/pages/editor/index.less index 9b37948..97e1ed0 100644 --- a/src/pages/editor/index.less +++ b/src/pages/editor/index.less @@ -142,7 +142,7 @@ border: 2px solid #06c; .tooltip { position: relative; - z-index: 999999; + // z-index: 999999; width: 388px; text-align: right; }