do not add checkbox on click

pull/133/head
Alex Turchyn 2 years ago
parent 54592e7264
commit 9bcf5aacc0

@ -391,6 +391,10 @@ export default {
this.drawField.areas.push(area)
this.drawField = null
this.selectedAreaRef.value = area
this.save()
} else {
const documentRef = this.documentRefs.find((e) => e.document.uuid === area.attachment_uuid)
const pageMask = documentRef.pageRefs[area.page].$refs.mask
@ -401,6 +405,7 @@ export default {
const previousField = [...this.template.fields].reverse().find((f) => f.type === type)
const previousArea = previousField?.areas?.[previousField.areas.length - 1]
if (previousArea || area.w) {
const areaW = previousArea?.w || (30 / pageMask.clientWidth)
const areaH = previousArea?.h || (30 / pageMask.clientHeight)
@ -412,7 +417,9 @@ export default {
area.w = areaW
area.h = areaH
}
}
if (area.w) {
const field = {
name: '',
uuid: v4(),
@ -423,11 +430,12 @@ export default {
}
this.template.fields.push(field)
}
this.selectedAreaRef.value = area
this.save()
}
}
},
onDropfield (area) {
const field = {

Loading…
Cancel
Save