|
|
@ -124,7 +124,7 @@ async function onMove(_event: { moved: { newIndex: number; oldIndex: number; ele |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="w-full h-full nc-col-option-select-option nc-form-scrollbar"> |
|
|
|
<div class="w-full h-full nc-col-select-option nc-form-scrollbar"> |
|
|
|
<div v-if="vModel.length > 12"> |
|
|
|
<div v-if="vModel.length > 12"> |
|
|
|
<a-input |
|
|
|
<a-input |
|
|
|
v-model:value="searchQuery" |
|
|
|
v-model:value="searchQuery" |
|
|
@ -152,6 +152,7 @@ async function onMove(_event: { moved: { newIndex: number; oldIndex: number; ele |
|
|
|
:model-value="vModel" |
|
|
|
:model-value="vModel" |
|
|
|
item-key="id" |
|
|
|
item-key="id" |
|
|
|
handle=".nc-child-draggable-icon" |
|
|
|
handle=".nc-child-draggable-icon" |
|
|
|
|
|
|
|
ghost-class="nc-form-field-limit-option-ghost" |
|
|
|
class="rounded-lg border-1 border-gray-200 !max-h-[224px] overflow-y-auto nc-form-scrollbar" |
|
|
|
class="rounded-lg border-1 border-gray-200 !max-h-[224px] overflow-y-auto nc-form-scrollbar" |
|
|
|
@change="onMove($event)" |
|
|
|
@change="onMove($event)" |
|
|
|
@start="drag = true" |
|
|
|
@start="drag = true" |
|
|
@ -258,7 +259,7 @@ async function onMove(_event: { moved: { newIndex: number; oldIndex: number; ele |
|
|
|
v-else-if=" |
|
|
|
v-else-if=" |
|
|
|
vModel.length && |
|
|
|
vModel.length && |
|
|
|
searchQuery && |
|
|
|
searchQuery && |
|
|
|
!vModel?.filter((el) => { |
|
|
|
!vModel?.filter((element) => { |
|
|
|
return column.uidt === UITypes.User |
|
|
|
return column.uidt === UITypes.User |
|
|
|
? (element?.display_name?.trim() || element?.email)?.toLowerCase().includes(searchQuery.toLowerCase()) |
|
|
|
? (element?.display_name?.trim() || element?.email)?.toLowerCase().includes(searchQuery.toLowerCase()) |
|
|
|
: element.title?.toLowerCase().includes(searchQuery.toLowerCase()) |
|
|
|
: element.title?.toLowerCase().includes(searchQuery.toLowerCase()) |
|
|
@ -272,7 +273,7 @@ async function onMove(_event: { moved: { newIndex: number; oldIndex: number; ele |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.nc-form-scrollbar { |
|
|
|
.nc-form-scrollbar { |
|
|
|
@apply scrollbar scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent; |
|
|
|
@apply scrollbar scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent; |
|
|
|
&::-webkit-scrollbar-thumb:hover { |
|
|
|
&::-webkit-scrollbar-thumb:hover { |
|
|
@ -286,4 +287,7 @@ async function onMove(_event: { moved: { newIndex: number; oldIndex: number; ele |
|
|
|
:deep(.ant-tag) { |
|
|
|
:deep(.ant-tag) { |
|
|
|
@apply rounded-tag my-[2px]; |
|
|
|
@apply rounded-tag my-[2px]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.nc-form-field-limit-option-ghost { |
|
|
|
|
|
|
|
@apply bg-gray-50; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|