|
@@ -336,7 +336,7 @@ const dataTransformationDialog = reactive<any>({
|
|
const selectedSreen = (item: any) => {
|
|
const selectedSreen = (item: any) => {
|
|
meta2d.store.data.width = item.width;
|
|
meta2d.store.data.width = item.width;
|
|
meta2d.store.data.height = item.height;
|
|
meta2d.store.data.height = item.height;
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
meta2d.render();
|
|
meta2d.render();
|
|
openData();
|
|
openData();
|
|
};
|
|
};
|
|
@@ -353,14 +353,14 @@ const fileSuccessed = async (content: any) => {
|
|
// meta2d.store.patchFlagsBackground = true;
|
|
// meta2d.store.patchFlagsBackground = true;
|
|
meta2d.setBackgroundImage(content.response.url);
|
|
meta2d.setBackgroundImage(content.response.url);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
meta2d.render();
|
|
meta2d.render();
|
|
}, 1000);
|
|
}, 1000);
|
|
};
|
|
};
|
|
|
|
|
|
const fileRemoved = () => {
|
|
const fileRemoved = () => {
|
|
meta2d.setBackgroundImage('');
|
|
meta2d.setBackgroundImage('');
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
meta2d.render();
|
|
meta2d.render();
|
|
data.background = [];
|
|
data.background = [];
|
|
};
|
|
};
|
|
@@ -369,7 +369,8 @@ const changeValue = (e: any, key: string) => {
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
meta2d.store.data[key] = e;
|
|
meta2d.store.data[key] = e;
|
|
if (key === 'background') {
|
|
if (key === 'background') {
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
|
|
+ meta2d.setBackgroundColor(e);
|
|
}
|
|
}
|
|
meta2d.render();
|
|
meta2d.render();
|
|
openData();
|
|
openData();
|