mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-10 16:52:49 +00:00
🐛 修复拖拽不能展开的问题
This commit is contained in:
parent
6e5b2ce808
commit
c47a0315e8
@ -101,13 +101,13 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
const curPointData = pointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorModal/modPointData',
|
||||
payload: { ...curPointData, point: newItem },
|
||||
payload: { ...curPointData, point: newItem, status: 'inToCanvas' },
|
||||
});
|
||||
} else {
|
||||
const curPointData = cpointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorPcModal/modPointData',
|
||||
payload: { ...curPointData, point: newItem },
|
||||
payload: { ...curPointData, point: newItem, status: 'inToCanvas' },
|
||||
});
|
||||
}
|
||||
};
|
||||
@ -119,13 +119,13 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
const curPointData = pointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorModal/modPointData',
|
||||
payload: { ...curPointData },
|
||||
payload: { ...curPointData, status: 'inToCanvas' },
|
||||
});
|
||||
} else {
|
||||
const curPointData = cpointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorPcModal/modPointData',
|
||||
payload: { ...curPointData },
|
||||
payload: { ...curPointData, status: 'inToCanvas' },
|
||||
});
|
||||
}
|
||||
};
|
||||
@ -137,13 +137,13 @@ const SourceBox = memo((props: SourceBoxProps) => {
|
||||
const curPointData = pointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorModal/modPointData',
|
||||
payload: { ...curPointData, point: newItem },
|
||||
payload: { ...curPointData, point: newItem, status: 'inToCanvas' },
|
||||
});
|
||||
} else {
|
||||
const curPointData = cpointData.filter(item => item.id === newItem.i)[0];
|
||||
dispatch({
|
||||
type: 'editorPcModal/modPointData',
|
||||
payload: { ...curPointData, point: newItem },
|
||||
payload: { ...curPointData, point: newItem, status: 'inToCanvas' },
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user