add context menu to template builder

This commit is contained in:
Alex Turchyn
2026-01-16 12:07:59 +02:00
committed by GitHub
parent 092a19966c
commit bf53204a41
5 changed files with 585 additions and 47 deletions
+4 -2
View File
@@ -22,8 +22,10 @@
:selected-submitter="selectedSubmitter"
:total-pages="sortedPreviewImages.length"
:image="image"
@drop-field="$emit('drop-field', {...$event, attachment_uuid: document.uuid })"
@drop-field="$emit('drop-field', { ...$event, attachment_uuid: document.uuid })"
@remove-area="$emit('remove-area', $event)"
@copy-field="$emit('copy-field', $event)"
@paste-field="$emit('paste-field', { ...$event, attachment_uuid: document.uuid })"
@scroll-to="scrollToArea"
@draw="$emit('draw', { area: {...$event.area, attachment_uuid: document.uuid }, isTooSmall: $event.isTooSmall })"
/>
@@ -118,7 +120,7 @@ export default {
default: false
}
},
emits: ['draw', 'drop-field', 'remove-area'],
emits: ['draw', 'drop-field', 'remove-area', 'paste-field', 'copy-field'],
data () {
return {
pageRefs: []