|
|
@ -148,10 +148,9 @@ const expandForm = (row: RowType, state?: Record<string, any>) => { |
|
|
|
|
|
|
|
|
|
|
|
const expandFormClick = async (e: MouseEvent, row: RowType) => { |
|
|
|
const expandFormClick = async (e: MouseEvent, row: RowType) => { |
|
|
|
const target = e.target as HTMLElement |
|
|
|
const target = e.target as HTMLElement |
|
|
|
if (target && !target.closest('.gallery-carousel')) { |
|
|
|
if (target.closest('.arrow')) return |
|
|
|
expandForm(row) |
|
|
|
expandForm(row) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openNewRecordFormHook?.on(async () => { |
|
|
|
openNewRecordFormHook?.on(async () => { |
|
|
|
const newRow = await addEmptyRow() |
|
|
|
const newRow = await addEmptyRow() |
|
|
@ -263,7 +262,6 @@ watch( |
|
|
|
v-if="!reloadAttachments && attachments(record).length" |
|
|
|
v-if="!reloadAttachments && attachments(record).length" |
|
|
|
class="gallery-carousel !border-b-1 !border-gray-200" |
|
|
|
class="gallery-carousel !border-b-1 !border-gray-200" |
|
|
|
arrows |
|
|
|
arrows |
|
|
|
@click="expandFormClick($event, record)" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<template #customPaging> |
|
|
|
<template #customPaging> |
|
|
|
<a> |
|
|
|
<a> |
|
|
@ -274,7 +272,7 @@ watch( |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #prevArrow> |
|
|
|
<template #prevArrow> |
|
|
|
<div class="z-10"> |
|
|
|
<div class="z-10 arrow"> |
|
|
|
<MdiChevronLeft |
|
|
|
<MdiChevronLeft |
|
|
|
class="text-gray-700 w-6 h-6 absolute left-1.5 bottom-[-90px] !opacity-0 !group-hover:opacity-100 !bg-white border-1 border-gray-200 rounded-md transition" |
|
|
|
class="text-gray-700 w-6 h-6 absolute left-1.5 bottom-[-90px] !opacity-0 !group-hover:opacity-100 !bg-white border-1 border-gray-200 rounded-md transition" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -282,7 +280,7 @@ watch( |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #nextArrow> |
|
|
|
<template #nextArrow> |
|
|
|
<div class="z-10"> |
|
|
|
<div class="z-10 arrow"> |
|
|
|
<MdiChevronRight |
|
|
|
<MdiChevronRight |
|
|
|
class="text-gray-700 w-6 h-6 absolute right-1.5 bottom-[-90px] !opacity-0 !group-hover:opacity-100 !bg-white border-1 border-gray-200 rounded-md transition" |
|
|
|
class="text-gray-700 w-6 h-6 absolute right-1.5 bottom-[-90px] !opacity-0 !group-hover:opacity-100 !bg-white border-1 border-gray-200 rounded-md transition" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -295,6 +293,12 @@ watch( |
|
|
|
:key="`carousel-${record.row.id}-${index}`" |
|
|
|
:key="`carousel-${record.row.id}-${index}`" |
|
|
|
class="h-52 object-cover" |
|
|
|
class="h-52 object-cover" |
|
|
|
:srcs="getPossibleAttachmentSrc(attachment)" |
|
|
|
:srcs="getPossibleAttachmentSrc(attachment)" |
|
|
|
|
|
|
|
@click=" |
|
|
|
|
|
|
|
() => { |
|
|
|
|
|
|
|
console.log('hereeeeee') |
|
|
|
|
|
|
|
expandFormClick($event, record) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-carousel> |
|
|
|
</a-carousel> |
|
|
|