深度画布 矩形工具

This commit is contained in:
lzp
2026-03-12 15:51:18 +08:00
parent 86f1efbf43
commit d115047563
9 changed files with 378 additions and 213 deletions

View File

@@ -15,10 +15,13 @@
<span class="icon"><svg-icon name="export" size="12" /></span>
<span class="text">Export</span>
</button>
<button class="export" @click="emit('import')">
<span class="text">import</span>
<button class="export" @click="emit('export-local')">
<span class="text">保存本地</span>
</button>
<button class="workbench">
<button class="export" @click="emit('import-local')">
<span class="text">本地导入</span>
</button>
<button class="workbench" @click="emit('export-close')">
<span class="icon"><svg-icon name="dc-workbench" size="20" /></span>
<span class="text">Workbench</span>
</button>
@@ -32,7 +35,7 @@
zoom: { default: 1, type: Number },
step: { default: 0.1, type: Number }
})
const emit = defineEmits(['export', 'import'])
const emit = defineEmits(['export', 'export-local', 'import-local', 'export-close'])
const importLocalImage = inject('importLocalImage') as () => void
const stateManager = inject('stateManager') as any
const toolManager = inject('toolManager') as any