Browse Source

fix: Fixed Lookup cell image handling

pull/2559/head
Mustafa 2 years ago
parent
commit
b4a27fb8ae
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/editableCell/EditableAttachmentCell.vue
  2. 20
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/LookupCell.vue

2
packages/nc-gui/components/project/spreadsheet/components/editableCell/EditableAttachmentCell.vue

@ -1,6 +1,6 @@
<template>
<div
class="main h-100"
class="main d-100 h-100"
@dragover.prevent="dragOver = true"
@dragenter.prevent="dragOver = true"
@dragexit="dragOver = false"

20
packages/nc-gui/components/project/spreadsheet/components/virtualCell/LookupCell.vue

@ -36,13 +36,25 @@
/>
</template>
<template v-else>
<template v-if="localValue">
<template v-if="lookupColumnMeta['uidt'] === UITypes.Attachment">
<table-cell
v-for="(v,i) in localValue"
:key="i"
:is-locked="true"
:column="lookupColumnMeta"
:meta="lookupTableMeta"
:db-alias="nodes.dbAlias"
:value="v"
:sql-ui="sqlUi"
/>
</template>
<template v-else-if="localValue">
<item-chip
v-for="(value,i) in localValue"
v-for="(v,i) in localValue"
:key="i"
style="margin: 1.5px"
:active="active"
:value="value"
:value="v"
:readonly="true"
>
<table-cell
@ -51,7 +63,7 @@
:column="lookupColumnMeta"
:meta="lookupTableMeta"
:db-alias="nodes.dbAlias"
:value="value"
:value="v"
:sql-ui="sqlUi"
/>
</item-chip>

Loading…
Cancel
Save