|
@@ -90,13 +90,18 @@ const changePropertyHandler = () => {
|
|
history.onceTrack(() => {
|
|
history.onceTrack(() => {
|
|
for (const item of setPropertyDatas.value) {
|
|
for (const item of setPropertyDatas.value) {
|
|
const belong = getShapeBelong(item.id);
|
|
const belong = getShapeBelong(item.id);
|
|
- // getShapeBelong(item.id)
|
|
|
|
- if (belong?.type) {
|
|
|
|
|
|
+ console.log(belong?.type);
|
|
|
|
+
|
|
|
|
+ if (belong?.item.id === item.id) {
|
|
store.setItem(belong.type, { value: item, id: belong.item.id });
|
|
store.setItem(belong.type, { value: item, id: belong.item.id });
|
|
|
|
+ } else {
|
|
|
|
+ history.push(
|
|
|
|
+ JSON.stringify({ ...store.data, __currentLayer: store.currentLayer })
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-};
|
|
|
|
|
|
+};
|
|
|
|
|
|
const { shape, tData, data } = useComponentStatus<Rect, GroupData>({
|
|
const { shape, tData, data } = useComponentStatus<Rect, GroupData>({
|
|
emit,
|
|
emit,
|