Browse Source

fix: support qrcode and barcode group by

pull/6987/head
Pranav C 1 year ago
parent
commit
183dd41ab0
  1. 25
      packages/nc-gui/components/smartsheet/grid/GroupBy.vue

25
packages/nc-gui/components/smartsheet/grid/GroupBy.vue

@ -1,6 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import tinycolor from 'tinycolor2' import tinycolor from 'tinycolor2'
import { UITypes } from 'nocodb-sdk' import {isVirtualCol, UITypes} from 'nocodb-sdk'
import Table from './Table.vue' import Table from './Table.vue'
import GroupBy from './GroupBy.vue' import GroupBy from './GroupBy.vue'
import GroupByTable from './GroupByTable.vue' import GroupByTable from './GroupByTable.vue'
@ -265,6 +265,29 @@ const parseKey = (group) => {
{{ grp.key in GROUP_BY_VARS.VAR_TITLES ? GROUP_BY_VARS.VAR_TITLES[grp.key] : parseKey(grp) }} {{ grp.key in GROUP_BY_VARS.VAR_TITLES ? GROUP_BY_VARS.VAR_TITLES[grp.key] : parseKey(grp) }}
</span> </span>
</a-tag> </a-tag>
<div>
<LazySmartsheetVirtualCell
v-if="isVirtualCol(grp.column)"
v-model="grp.key"
class="!text-gray-600"
:column="grp.column"
:row="record"
/>
<LazySmartsheetCell
v-else
v-model="grp.key"
class="!text-gray-600"
:column="grp.column"
:edit-enabled="false"
:read-only="true"
/>
</div>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save