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