|
|
@ -281,7 +281,7 @@ const filterOption = (input: string, option: any) => { |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<template v-for="selectedOpt of vModel" :key="selectedOpt.value"> |
|
|
|
<template v-for="selectedOpt of vModel" :key="selectedOpt.value"> |
|
|
|
<a-tag class="rounded-tag max-w-full" color="'#ccc'"> |
|
|
|
<a-tag class="rounded-tag max-w-full !pl-0" color="'#ccc'"> |
|
|
|
<span |
|
|
|
<span |
|
|
|
:style="{ |
|
|
|
:style="{ |
|
|
|
'color': tinycolor.isReadable('#ccc' || '#ccc', '#fff', { level: 'AA', size: 'large' }) |
|
|
|
'color': tinycolor.isReadable('#ccc' || '#ccc', '#fff', { level: 'AA', size: 'large' }) |
|
|
@ -289,8 +289,17 @@ const filterOption = (input: string, option: any) => { |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
'font-size': '13px', |
|
|
|
'font-size': '13px', |
|
|
|
}" |
|
|
|
}" |
|
|
|
|
|
|
|
class="flex items-stretch gap-2" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<div class="flex-none"> |
|
|
|
|
|
|
|
<GeneralUserIcon |
|
|
|
|
|
|
|
size="auto" |
|
|
|
|
|
|
|
:name="!selectedOpt.label?.includes('@') ? selectedOpt.label.trim() : ''" |
|
|
|
|
|
|
|
:email="selectedOpt.label" |
|
|
|
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
{{ selectedOpt.label }} |
|
|
|
{{ selectedOpt.label }} |
|
|
@ -349,13 +358,20 @@ const filterOption = (input: string, option: any) => { |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
'font-size': '13px', |
|
|
|
'font-size': '13px', |
|
|
|
}" |
|
|
|
}" |
|
|
|
class="flex items-center gap-2" |
|
|
|
class="flex items-stretch gap-2" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
> |
|
|
|
> |
|
|
|
<GeneralUserIcon size="medium" :email="op.email" /> |
|
|
|
<div> |
|
|
|
|
|
|
|
<GeneralUserIcon |
|
|
|
|
|
|
|
size="auto" |
|
|
|
|
|
|
|
:name="op.display_name?.trim() ? op.display_name?.trim() : ''" |
|
|
|
|
|
|
|
:email="op.email" |
|
|
|
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
{{ op.display_name?.length ? op.display_name : op.email }} |
|
|
|
{{ op.display_name?.trim() || op.email }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<span |
|
|
|
<span |
|
|
|
class="text-ellipsis overflow-hidden" |
|
|
|
class="text-ellipsis overflow-hidden" |
|
|
@ -365,7 +381,7 @@ const filterOption = (input: string, option: any) => { |
|
|
|
display: 'inline', |
|
|
|
display: 'inline', |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
{{ op.display_name?.length ? op.display_name : op.email }} |
|
|
|
{{ op.display_name?.trim() || op.email }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</NcTooltip> |
|
|
|
</NcTooltip> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -376,7 +392,7 @@ const filterOption = (input: string, option: any) => { |
|
|
|
<template #tagRender="{ label, value: val, onClose }"> |
|
|
|
<template #tagRender="{ label, value: val, onClose }"> |
|
|
|
<a-tag |
|
|
|
<a-tag |
|
|
|
v-if="options.find((el) => el.id === val)" |
|
|
|
v-if="options.find((el) => el.id === val)" |
|
|
|
class="rounded-tag nc-selected-option" |
|
|
|
class="rounded-tag nc-selected-option !pl-0" |
|
|
|
:style="{ display: 'flex', alignItems: 'center' }" |
|
|
|
:style="{ display: 'flex', alignItems: 'center' }" |
|
|
|
color="'#ccc'" |
|
|
|
color="'#ccc'" |
|
|
|
:closable="editAllowed && ((vModel?.length ?? 0) > 1 || !column?.rqd)" |
|
|
|
:closable="editAllowed && ((vModel?.length ?? 0) > 1 || !column?.rqd)" |
|
|
@ -394,8 +410,17 @@ const filterOption = (input: string, option: any) => { |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
'font-size': '13px', |
|
|
|
'font-size': '13px', |
|
|
|
}" |
|
|
|
}" |
|
|
|
|
|
|
|
class="flex items-stretch gap-2" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<GeneralUserIcon |
|
|
|
|
|
|
|
size="auto" |
|
|
|
|
|
|
|
:name="!label?.includes('@') ? label.trim() : ''" |
|
|
|
|
|
|
|
:email="label" |
|
|
|
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
{{ label }} |
|
|
|
{{ label }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a-tag> |
|
|
|
</a-tag> |
|
|
|