|
|
@ -1,4 +1,5 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
|
|
|
|
import { onMounted } from '@vue/runtime-core' |
|
|
|
import { isVirtualCol } from 'nocodb-sdk' |
|
|
|
import { isVirtualCol } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
ActiveViewInj, |
|
|
|
ActiveViewInj, |
|
|
@ -69,17 +70,6 @@ const coverImageColumn: any = $( |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
|
|
|
[meta, view], |
|
|
|
|
|
|
|
async () => { |
|
|
|
|
|
|
|
if (meta?.value && view?.value) { |
|
|
|
|
|
|
|
await loadData() |
|
|
|
|
|
|
|
await loadGalleryData() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ immediate: true }, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isRowEmpty = (record: any, col: any) => { |
|
|
|
const isRowEmpty = (record: any, col: any) => { |
|
|
|
const val = record.row[col.title] |
|
|
|
const val = record.row[col.title] |
|
|
|
if (!val) return true |
|
|
|
if (!val) return true |
|
|
@ -154,6 +144,11 @@ const expandedFormOnRowIdDlg = computed({ |
|
|
|
|
|
|
|
|
|
|
|
// reload table data reload hook as fallback to rowdatareload |
|
|
|
// reload table data reload hook as fallback to rowdatareload |
|
|
|
provide(ReloadRowDataHookInj, reloadViewDataHook) |
|
|
|
provide(ReloadRowDataHookInj, reloadViewDataHook) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
|
|
|
|
await loadData() |
|
|
|
|
|
|
|
await loadGalleryData() |
|
|
|
|
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -170,7 +165,9 @@ provide(ReloadRowDataHookInj, reloadViewDataHook) |
|
|
|
<a-carousel v-if="!reloadAttachments && attachments(record).length" autoplay class="gallery-carousel" arrows> |
|
|
|
<a-carousel v-if="!reloadAttachments && attachments(record).length" autoplay class="gallery-carousel" arrows> |
|
|
|
<template #customPaging> |
|
|
|
<template #customPaging> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<div class="pt-[12px]"><div></div></div> |
|
|
|
<div class="pt-[12px]"> |
|
|
|
|
|
|
|
<div></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #prevArrow> |
|
|
|
<template #prevArrow> |
|
|
|