fix builder field button bg color

This commit is contained in:
Alex Turchyn
2023-08-28 23:43:33 +03:00
parent d3a5f36555
commit 08447ec4cf
4 changed files with 19 additions and 2 deletions
+10 -1
View File
@@ -84,7 +84,10 @@
@down="moveDocument(item, 1)"
@change="save"
/>
<div class="sticky bottom-0 bg-base-100 py-2">
<div
class="sticky bottom-0 py-2"
:class="{ 'bg-base-100': withStickySubmitters }"
>
<Upload
v-if="sortedDocuments.length"
:template-id="template.id"
@@ -233,6 +236,7 @@ export default {
template: this.template,
save: this.save,
baseFetch: this.baseFetch,
backgroundColor: this.backgroundColor,
selectedAreaRef: computed(() => this.selectedAreaRef)
}
},
@@ -246,6 +250,11 @@ export default {
required: false,
default: false
},
backgroundColor: {
type: String,
required: false,
default: ''
},
baseUrl: {
type: String,
required: false,
+2 -1
View File
@@ -30,6 +30,7 @@
:key="type"
draggable="true"
class="flex items-center justify-center border border-dashed border-base-300 w-full rounded relative"
:style="{ backgroundColor: backgroundColor }"
@dragstart="onDragstart(type)"
@dragend="$emit('drag-end')"
@click="addField(type)"
@@ -101,7 +102,7 @@ export default {
Field,
FieldSubmitter
},
inject: ['save'],
inject: ['save', 'backgroundColor'],
props: {
fields: {
type: Array,