|
@@ -464,7 +464,7 @@
|
|
|
placeholder="0"
|
|
|
v-model.number="data.pen.shadowOffsetX"
|
|
|
style="width: 60px"
|
|
|
- @change="changeValue('x')"
|
|
|
+ @change="changeValue('shadowOffsetX')"
|
|
|
title="X偏移"
|
|
|
/>
|
|
|
<t-input
|
|
@@ -765,8 +765,10 @@
|
|
|
@remove="fileRemoved"
|
|
|
>
|
|
|
<template #fileListDisplay>
|
|
|
- <a class="mr-4" @click="upload"> 点击上传 </a>
|
|
|
- / 拖拽图片到此区域
|
|
|
+ <div style="z-index: 20">
|
|
|
+ <a class="mr-4" @click="upload"> 点击上传 </a>
|
|
|
+ / 拖拽图片到此区域
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</t-upload>
|
|
|
</div>
|
|
@@ -1217,17 +1219,21 @@ const onFontFamily = (fontFamily: string) => {
|
|
|
};
|
|
|
|
|
|
const fileSuccessed = async (content: any) => {
|
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
- meta2d.setBackgroundImage(content.response.url);
|
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
|
+ // meta2d.setBackgroundImage(content.response.url);
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
|
+ data.pen.image = content.response.url;
|
|
|
+ updatePen(data.pen, 'image');
|
|
|
meta2d.render();
|
|
|
};
|
|
|
|
|
|
const fileRemoved = () => {
|
|
|
- meta2d.setBackgroundImage('');
|
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
+ // meta2d.setBackgroundImage('');
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
|
+ data.pen.image = '';
|
|
|
+ updatePen(data.pen, 'image');
|
|
|
meta2d.render();
|
|
|
- data.background = [];
|
|
|
+ // data.background = [];
|
|
|
};
|
|
|
|
|
|
const upload = () => {
|