mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-03-06 15:41:52 +00:00
bug: clone data err
This commit is contained in:
parent
025be2d4a4
commit
1c39627e94
@ -235,7 +235,7 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
{clonePointData.length > 0 ? (
|
||||
{pointData.length > 0 ? (
|
||||
<GridLayout
|
||||
className={styles.layout}
|
||||
cols={24}
|
||||
@ -246,15 +246,14 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
onDragStart={onDragStart}
|
||||
onResizeStop={onResizeStop}
|
||||
>
|
||||
{clonePointData.map(value => (
|
||||
{pointData.map(value => (
|
||||
<div
|
||||
className={value.isMenu ? styles.selected : styles.dragItem}
|
||||
key={value.id}
|
||||
data-grid={value.point}
|
||||
onMouseDownCapture={e => handleCurrentCard(e, true, value.id)}
|
||||
>
|
||||
<DynamicEngine {...value.item} isTpl={false} />
|
||||
<div
|
||||
{/* <div
|
||||
className={styles.tooltip}
|
||||
style={{ display: value.isMenu ? 'block' : 'none' }}
|
||||
>
|
||||
@ -264,7 +263,7 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
<div className="tooltipRow2">
|
||||
<a>删除</a>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
))}
|
||||
</GridLayout>
|
||||
@ -397,6 +396,7 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
pointData,
|
||||
scaleNum,
|
||||
setDragState,
|
||||
clonePointData,
|
||||
]);
|
||||
|
||||
return <>{render}</>;
|
||||
|
||||
@ -142,7 +142,7 @@
|
||||
border: 2px solid #06c;
|
||||
.tooltip {
|
||||
position: relative;
|
||||
z-index: 999999;
|
||||
// z-index: 999999;
|
||||
width: 388px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user