|
|
|
@ -107,6 +107,7 @@ const onClick = (row: Row) => {
|
|
|
|
|
:footer="null" |
|
|
|
|
title="Child list" |
|
|
|
|
:body-style="{ padding: 0 }" |
|
|
|
|
width="400px" |
|
|
|
|
wrap-class-name="nc-modal-child-list" |
|
|
|
|
> |
|
|
|
|
<div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6"> |
|
|
|
@ -143,7 +144,7 @@ const onClick = (row: Row) => {
|
|
|
|
|
<a-card |
|
|
|
|
v-for="(row, i) of childrenList?.list ?? state?.[colTitle] ?? []" |
|
|
|
|
:key="i" |
|
|
|
|
class="nc-nested-list-item !my-4 hover:(!bg-gray-200/50 shadow-md)" |
|
|
|
|
class="nc-nested-list-item !my-2 hover:(!bg-gray-200/50 shadow-md)" |
|
|
|
|
@click="onClick(row)" |
|
|
|
|
> |
|
|
|
|
<div class="flex items-center"> |
|
|
|
@ -159,14 +160,14 @@ const onClick = (row: Row) => {
|
|
|
|
|
<div v-if="!readonly" class="flex gap-2"> |
|
|
|
|
<component |
|
|
|
|
:is="iconMap.linkRemove" |
|
|
|
|
class="text-xs text-grey hover:(!text-red-500) cursor-pointer" |
|
|
|
|
class="!text-base text-grey hover:(!text-red-500) cursor-pointer nc-icon-transition" |
|
|
|
|
data-testid="nc-child-list-icon-unlink" |
|
|
|
|
@click.stop="unlinkRow(row)" |
|
|
|
|
/> |
|
|
|
|
<component |
|
|
|
|
:is="iconMap.delete" |
|
|
|
|
v-if="!readonly && !isPublic" |
|
|
|
|
class="text-xs text-grey hover:(!text-red-500) cursor-pointer" |
|
|
|
|
class="!text-base text-grey hover:(!text-red-500) cursor-pointer nc-icon-transition" |
|
|
|
|
data-testid="nc-child-list-icon-delete" |
|
|
|
|
@click.stop="deleteRelatedRow(row, unlinkIfNewRow)" |
|
|
|
|
/> |
|
|
|
@ -214,6 +215,6 @@ const onClick = (row: Row) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.nc-nested-list-item .ant-card-body) { |
|
|
|
|
@apply !px-2 !py-1; |
|
|
|
|
@apply !px-1 !py-0; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|