|
|
@ -9,7 +9,6 @@ import { |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
isAttachment, |
|
|
|
isAttachment, |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
renderValue, |
|
|
|
|
|
|
|
useExpandedFormDetached, |
|
|
|
useExpandedFormDetached, |
|
|
|
useLTARStoreOrThrow, |
|
|
|
useLTARStoreOrThrow, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
@ -19,9 +18,10 @@ interface Props { |
|
|
|
item?: any |
|
|
|
item?: any |
|
|
|
column: any |
|
|
|
column: any |
|
|
|
showUnlinkButton: boolean |
|
|
|
showUnlinkButton: boolean |
|
|
|
|
|
|
|
border?: boolean |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { value, item, column, showUnlinkButton } = defineProps<Props>() |
|
|
|
const { value, item, column, showUnlinkButton, border = true } = defineProps<Props>() |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['unlink']) |
|
|
|
const emit = defineEmits(['unlink']) |
|
|
|
|
|
|
|
|
|
|
@ -84,9 +84,8 @@ export default { |
|
|
|
class="min-w-max" |
|
|
|
class="min-w-max" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'px-1 rounded-full flex-1': !isAttachment(column), |
|
|
|
'px-1 rounded-full flex-1': !isAttachment(column), |
|
|
|
'border-gray-200 rounded border-1': ![UITypes.Attachment, UITypes.MultiSelect, UITypes.SingleSelect].includes( |
|
|
|
'border-gray-200 rounded border-1': |
|
|
|
column.uidt, |
|
|
|
border && ![UITypes.Attachment, UITypes.MultiSelect, UITypes.SingleSelect].includes(column.uidt), |
|
|
|
), |
|
|
|
|
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<LazySmartsheetCell :model-value="value" :column="column" :edit-enabled="false" :virtual="true" :read-only="true" /> |
|
|
|
<LazySmartsheetCell :model-value="value" :column="column" :edit-enabled="false" :virtual="true" :read-only="true" /> |
|
|
|