From 8541eaf3eea4ea8895f14dbbb67fab7f5d1102c2 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 10 Aug 2021 12:22:37 +0530 Subject: [PATCH] feat: Show lookup cell same as referred cell re #416 Signed-off-by: Pranav C --- .../virtualCell/components/itemChip.vue | 3 ++- .../components/virtualCell/lookupCell.vue | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/itemChip.vue b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/itemChip.vue index fcbb16d66a..e7b5969d2d 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/itemChip.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/itemChip.vue @@ -7,7 +7,8 @@ :color="isDark ? '' : 'primary lighten-5'" @click="!readonly && active && $emit('edit',item)" > - {{ value }} + + {{ value }}
+ > + + cl.cn === this.column.lk.lcn) || {})._cn }, + lookUpColumn() { + if (!this.lookUpMeta || !this.column.lk.lcn) { + return + } + return (this.$store.state.meta.metas[this.column.lk.ltn].columns.find(cl => cl.cn === this.column.lk.lcn) || {}) + }, localValueObj() { if (!this.column || !this.row) { return null