Browse Source

feat(nc-gui): not render field with no value on kanban card

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
748fa51369
  1. 6
      packages/nc-gui/components/smartsheet/Kanban.vue

6
packages/nc-gui/components/smartsheet/Kanban.vue

@ -275,18 +275,17 @@ openNewRecordFormHook?.on(async (stackTitle) => {
:key="`record-${record.row.id}-${col.id}`" :key="`record-${record.row.id}-${col.id}`"
class="flex flex-col rounded-lg w-full" class="flex flex-col rounded-lg w-full"
> >
<div class="flex flex-row w-full justify-start pt-2"> <div v-if="!isRowEmpty(record, col)" class="flex flex-row w-full justify-start pt-2">
<div class="w-full text-gray-600"> <div class="w-full text-gray-600">
<SmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" :hide-menu="true" /> <SmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" :hide-menu="true" />
<SmartsheetHeaderCell v-else :column="col" :hide-menu="true" /> <SmartsheetHeaderCell v-else :column="col" :hide-menu="true" />
</div> </div>
</div> </div>
<div <div
v-if="!isRowEmpty(record, col)"
class="flex flex-row w-full items-center justify-start" class="flex flex-row w-full items-center justify-start"
:class="{ 'pt-2 pl-2': col.uidt !== UITypes.SingleSelect }" :class="{ 'pt-2 pl-2': col.uidt !== UITypes.SingleSelect }"
> >
<div v-if="isRowEmpty(record, col)" class="h-4 bg-gray-200 px-5 ml-3 mt-2 rounded-lg"></div>
<template v-else>
<SmartsheetVirtualCell <SmartsheetVirtualCell
v-if="isVirtualCol(col)" v-if="isVirtualCol(col)"
v-model="record.row[col.title]" v-model="record.row[col.title]"
@ -300,7 +299,6 @@ openNewRecordFormHook?.on(async (stackTitle) => {
:edit-enabled="false" :edit-enabled="false"
:read-only="true" :read-only="true"
/> />
</template>
</div> </div>
</div> </div>
</a-card> </a-card>

Loading…
Cancel
Save