allow to drag existing field on the page

This commit is contained in:
Pete Matsyburka
2024-02-27 01:41:57 +02:00
parent f83674b934
commit 970977e469
3 changed files with 36 additions and 25 deletions
+2 -2
View File
@@ -39,7 +39,7 @@
/>
</div>
<div
v-show="resizeDirection || isMove || isDrag || showMask || (drawField && isMobile)"
v-show="resizeDirection || isMove || isDrag || showMask || (drawField && isMobile) || fieldsDragFieldRef.value"
id="mask"
ref="mask"
class="top-0 bottom-0 left-0 right-0 absolute"
@@ -61,7 +61,7 @@ export default {
components: {
FieldArea
},
inject: ['fieldTypes', 'defaultDrawFieldType'],
inject: ['fieldTypes', 'defaultDrawFieldType', 'fieldsDragFieldRef'],
props: {
image: {
type: Object,