fix: minor fixes in side panel layout
This commit is contained in:
parent
7962d3a895
commit
01cbdb9ba9
@ -125,7 +125,6 @@ import { computed } from 'vue'
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
fields: {
|
fields: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
|
||||||
},
|
},
|
||||||
isLastSection: {
|
isLastSection: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@ -146,7 +145,7 @@ const _fields = computed(() => {
|
|||||||
if (df?.depends_on) evaluate_depends_on(df.depends_on, field)
|
if (df?.depends_on) evaluate_depends_on(df.depends_on, field)
|
||||||
all_fields.push({
|
all_fields.push({
|
||||||
...field,
|
...field,
|
||||||
filters: df.link_filters && JSON.parse(df.link_filters),
|
filters: df?.link_filters && JSON.parse(df.link_filters),
|
||||||
placeholder: field.placeholder || field.label,
|
placeholder: field.placeholder || field.label,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -40,12 +40,12 @@
|
|||||||
v-for="(section, i) in sections.data"
|
v-for="(section, i) in sections.data"
|
||||||
:key="section.label"
|
:key="section.label"
|
||||||
class="flex flex-col py-1.5 px-1"
|
class="flex flex-col py-1.5 px-1"
|
||||||
:class="{ 'border-b': i !== sections.data.length - 1 }"
|
:class="{ 'border-b': i !== sections.data?.length - 1 }"
|
||||||
>
|
>
|
||||||
<Section :is-opened="section.opened" :label="section.label">
|
<Section :is-opened="section.opened" :label="section.label">
|
||||||
<SectionFields
|
<SectionFields
|
||||||
:fields="section.fields"
|
:fields="section.fields"
|
||||||
:isLastSection="i == section.data.length - 1"
|
:isLastSection="i == section.data?.length - 1"
|
||||||
v-model="data"
|
v-model="data"
|
||||||
/>
|
/>
|
||||||
</Section>
|
</Section>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user