Browse Source

chore(gui-v2): lint

pull/2998/head
Wing-Kam Wong 2 years ago
parent
commit
03db3144da
  1. 1
      packages/nc-gui-v2/components/smartsheet-column/LookupOptions.vue
  2. 10
      packages/nc-gui-v2/components/virtual-cell/Lookup.vue

1
packages/nc-gui-v2/components/smartsheet-column/LookupOptions.vue

@ -45,7 +45,6 @@ const columns = $computed(() => {
return metas[selectedTable.id].columns.filter((c) => !isSystemColumn(c)) return metas[selectedTable.id].columns.filter((c) => !isSystemColumn(c))
}) })
</script> </script>
<template> <template>

10
packages/nc-gui-v2/components/virtual-cell/Lookup.vue

@ -1,6 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { ColumnType, LinkToAnotherRecordType, LookupType } from 'nocodb-sdk' import type { ColumnType, LinkToAnotherRecordType, LookupType } from 'nocodb-sdk'
import { RelationTypes, isVirtualCol, UITypes } from 'nocodb-sdk' import { RelationTypes, UITypes, isVirtualCol } from 'nocodb-sdk'
import { useColumn } from '~/composables' import { useColumn } from '~/composables'
import { ColumnInj, MetaInj, ReadonlyInj, ValueInj } from '~/context' import { ColumnInj, MetaInj, ReadonlyInj, ValueInj } from '~/context'
@ -48,12 +48,14 @@ const lookupColumnMetaProps = useColumn(lookupColumn)
<!-- Render normal cell --> <!-- Render normal cell -->
<template v-else> <template v-else>
<!-- For attachment cell avoid adding chip style --> <!-- For attachment cell avoid adding chip style -->
<div v-for="(v, i) in arrValue" :key="i" <div
:class="{'bg-gray-100 px-2 rounded-full':!lookupColumnMetaProps.isAttachment}"> v-for="(v, i) in arrValue"
:key="i"
:class="{ 'bg-gray-100 px-2 rounded-full': !lookupColumnMetaProps.isAttachment }"
>
<SmartsheetCell :model-value="v" :column="lookupColumn" :edit-enabled="false" /> <SmartsheetCell :model-value="v" :column="lookupColumn" :edit-enabled="false" />
</div> </div>
</template> </template>
</template> </template>
</div> </div>
</template> </template>

Loading…
Cancel
Save