improve drag'n'drop in the builder

This commit is contained in:
Alex Turchyn
2025-02-17 19:47:46 +02:00
committed by Pete Matsyburka
parent 2573d8cb19
commit 7a4629bf79
6 changed files with 307 additions and 80 deletions
+7 -2
View File
@@ -3,7 +3,7 @@
class="list-field group mb-2"
>
<div
class="border border-base-300 rounded rounded-tr-none relative group fields-list-item"
class="border border-base-300 rounded relative group fields-list-item"
:style="{ backgroundColor: backgroundColor }"
>
<div class="flex items-center justify-between relative group/contenteditable-container">
@@ -149,7 +149,7 @@
</div>
</div>
<div
v-if="field.options"
v-if="field.options && withOptions"
ref="options"
class="border-t border-base-300 mx-2 pt-2 space-y-1.5"
draggable="true"
@@ -302,6 +302,11 @@ export default {
type: Object,
required: true
},
withOptions: {
type: Boolean,
required: false,
default: true
},
defaultField: {
type: Object,
required: false,