medical-form-wrapper(
title="Документы"
)
.form-wrap.gap-24.w-full
.data-section.flex.flex-col.gap-4(v-for="data in configData")
.font-semibold.text-sm.whitespace-nowrap {{data.dataLabel}}
.flex.w-full.justify-between.items-center.gap-4(v-for="field in data.fields")
.label-field.font-sm.text-sm.whitespace-nowrap {{`${field.label} :`}}
.photo-field.flex.gap-3.items-center(v-if="field.type === 'photo'")
base-avatar(
v-if="photo",
:size="40",
)
img.object-cover(
:src="url + photo"
alt="photo"
)
.replace-photo.font-medium.text-base.cursor-pointer(v-if="isEdit && photo") Заменить фото
.replace-photo.font-medium.text-base.cursor-pointer(v-if="isEdit && !photo") Добавить фото
base-input(
v-else
:disabled="!isEdit"
:width="278"
:standout="!isEdit"
:outlined="isEdit"
:rule="field.rules"
text-color="black"
)