|
|
@ -3,14 +3,14 @@ import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import ItemChip from './components/ItemChip.vue' |
|
|
|
import ItemChip from './components/ItemChip.vue' |
|
|
|
import ListChildItems from './components/ListChildItems.vue' |
|
|
|
import ListChildItems from './components/ListChildItems.vue' |
|
|
|
import ListItems from './components/ListItems.vue' |
|
|
|
import ListItems from './components/ListItems.vue' |
|
|
|
import { useProvideLTARStore } from '~/composables' |
|
|
|
import { useProvideLTARStore } from '#imports' |
|
|
|
import { ColumnInj, ReloadViewDataHookInj, RowInj, ValueInj } from '~/context' |
|
|
|
import { CellValueInj, ColumnInj, ReloadViewDataHookInj, RowInj } from '~/context' |
|
|
|
import MdiExpandIcon from '~icons/mdi/arrow-expand' |
|
|
|
import MdiExpandIcon from '~icons/mdi/arrow-expand' |
|
|
|
import MdiPlusIcon from '~icons/mdi/plus' |
|
|
|
import MdiPlusIcon from '~icons/mdi/plus' |
|
|
|
|
|
|
|
|
|
|
|
const column = inject(ColumnInj) |
|
|
|
const column = inject(ColumnInj) |
|
|
|
const row = inject(RowInj) |
|
|
|
const row = inject(RowInj) |
|
|
|
const value = inject(ValueInj) |
|
|
|
const cellValue = inject(CellValueInj) |
|
|
|
const reloadTrigger = inject(ReloadViewDataHookInj) |
|
|
|
const reloadTrigger = inject(ReloadViewDataHookInj) |
|
|
|
|
|
|
|
|
|
|
|
const listItemsDlg = ref(false) |
|
|
|
const listItemsDlg = ref(false) |
|
|
@ -29,10 +29,10 @@ await loadRelatedTableMeta() |
|
|
|
<div class="flex align-center gap-1 w-full h-full chips-wrapper"> |
|
|
|
<div class="flex align-center gap-1 w-full h-full chips-wrapper"> |
|
|
|
<!-- <template v-if="!isForm"> --> |
|
|
|
<!-- <template v-if="!isForm"> --> |
|
|
|
<div class="chips flex align-center img-container flex-grow hm-items flex-nowrap min-w-0 overflow-hidden"> |
|
|
|
<div class="chips flex align-center img-container flex-grow hm-items flex-nowrap min-w-0 overflow-hidden"> |
|
|
|
<template v-if="value"> |
|
|
|
<template v-if="cellValue"> |
|
|
|
<ItemChip v-for="(ch, i) in value" :key="i" :value="ch[relatedTablePrimaryValueProp]" @unlink="unlink(ch)" /> |
|
|
|
<ItemChip v-for="(ch, i) in cellValue" :key="i" :value="ch[relatedTablePrimaryValueProp]" @unlink="unlink(ch)" /> |
|
|
|
|
|
|
|
|
|
|
|
<span v-if="value?.length === 10" class="caption pointer ml-1 grey--text" @click="childListDlg = true">more... </span> |
|
|
|
<span v-if="cellValue?.length === 10" class="caption pointer ml-1 grey--text" @click="childListDlg = true">more... </span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex-1 flex justify-end gap-1"> |
|
|
|
<div class="flex-1 flex justify-end gap-1"> |
|
|
|