This commit is contained in:
李志鹏
2026-01-19 10:47:30 +08:00
parent 6b0d26ed6e
commit 43e3a79124
6 changed files with 138 additions and 55 deletions

View File

@@ -144,6 +144,7 @@ const props = defineProps({
},
});
const loading = ref(false);
// 引用和状态
const canvasRef = ref(null);
const canvasContainerRef = shallowRef(null);
@@ -277,6 +278,7 @@ onMounted(async () => {
canvasManager.canvas.activeLayerId = activeLayerId;
canvasManager.activeLayerId = activeLayerId;
canvasManager.canvas.activeElementId = activeElementId;
canvasManager.canvas.loading = loading;
// 创建命令管理器
commandManager = new CommandManager({
@@ -1392,6 +1394,7 @@ defineExpose({
/>
<!-- 上传图片遮罩 -->
<div v-show="isDragOver" class="dragover-tip"></div>
<div class="loading" v-show="loading"><a-spin :delay="0.5" /></div>
</div>
</template>
@@ -1466,6 +1469,9 @@ defineExpose({
top: 0;
bottom: 0;
}
.app-container >.loading{
position: absolute;
}
.background-grid {
--offsetX: 50%;