|
|
|
@ -31,7 +31,7 @@ const emit = defineEmits(['resize-start'])
|
|
|
|
|
'h-full': size === 'auto', |
|
|
|
|
'rounded-l-[4px] !border-r-0 ml-1': position === 'leftRounded', |
|
|
|
|
'rounded-r-[4px] !border-l-0 mr-1': position === 'rightRounded', |
|
|
|
|
'rounded-[4px] mx-1': position === 'rounded', |
|
|
|
|
'rounded-[4px] ml-0.8 mr-1': position === 'rounded', |
|
|
|
|
'rounded-none !border-x-0': position === 'none', |
|
|
|
|
'bg-maroon-50': color === 'maroon', |
|
|
|
|
'bg-blue-50': color === 'blue', |
|
|
|
@ -40,6 +40,7 @@ const emit = defineEmits(['resize-start'])
|
|
|
|
|
'bg-pink-50': color === 'pink', |
|
|
|
|
'bg-purple-50': color === 'purple', |
|
|
|
|
'bg-white border-gray-300': color === 'gray', |
|
|
|
|
'!bg-nc-bg-gray-light': hover || dragging, |
|
|
|
|
}" |
|
|
|
|
:style="{ |
|
|
|
|
boxShadow: |
|
|
|
@ -76,9 +77,14 @@ const emit = defineEmits(['resize-start'])
|
|
|
|
|
:class="{ |
|
|
|
|
'pr-7': position === 'leftRounded', |
|
|
|
|
}" |
|
|
|
|
class="flex mb-0.5 overflow-x-hidden break-word whitespace-nowrap overflow-hidden text-ellipsis w-full truncate text-ellipsis flex-col gap-1" |
|
|
|
|
class="flex mb-0.5 overflow-x-hidden w-full truncate flex-col gap-1" |
|
|
|
|
> |
|
|
|
|
<NcTooltip |
|
|
|
|
:disabled="selected || dragging" |
|
|
|
|
class="break-word whitespace-nowrap overflow-hidden text-ellipsis pr-1" |
|
|
|
|
show-on-truncate-only |
|
|
|
|
wrap-child="span" |
|
|
|
|
> |
|
|
|
|
<NcTooltip :disabled="selected || dragging" class="inline-block" show-on-truncate-only wrap-child="span"> |
|
|
|
|
<slot class="text-sm text-nowrap text-gray-800 leading-7" /> |
|
|
|
|
<template #title> |
|
|
|
|
<slot /> |
|
|
|
|