|
|
@ -1,6 +1,6 @@ |
|
|
|
import type { MaybeRef } from '@vueuse/core' |
|
|
|
import type { MaybeRef } from '@vueuse/core' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, LinkToAnotherRecordType } from 'nocodb-sdk' |
|
|
|
import { UITypes } from 'nocodb-sdk' |
|
|
|
import { isVirtualCol, RelationTypes, UITypes } from 'nocodb-sdk' |
|
|
|
import type { Cell } from './cellRange' |
|
|
|
import type { Cell } from './cellRange' |
|
|
|
import { CellRange } from './cellRange' |
|
|
|
import { CellRange } from './cellRange' |
|
|
|
import { copyTable, message, reactive, ref, unref, useCopy, useEventListener, useI18n } from '#imports' |
|
|
|
import { copyTable, message, reactive, ref, unref, useCopy, useEventListener, useI18n } from '#imports' |
|
|
@ -266,6 +266,9 @@ export function useMultiSelect( |
|
|
|
await copyValue() |
|
|
|
await copyValue() |
|
|
|
break |
|
|
|
break |
|
|
|
case 86: |
|
|
|
case 86: |
|
|
|
|
|
|
|
if(isVirtualCol(columnObj) && (columnObj.uidt !== UITypes.LinkToAnotherRecord || (columnObj.colOptions as LinkToAnotherRecordType)?.type !== RelationTypes.BELONGS_TO)) { |
|
|
|
|
|
|
|
return message.info(t('msg.info.cannotPasteHere')) |
|
|
|
|
|
|
|
} |
|
|
|
// const clipboardText = await getClipboardData()
|
|
|
|
// const clipboardText = await getClipboardData()
|
|
|
|
if (clipboardContext) { |
|
|
|
if (clipboardContext) { |
|
|
|
rowObj.row[columnObj.title!] = convertCellData({ |
|
|
|
rowObj.row[columnObj.title!] = convertCellData({ |
|
|
@ -301,6 +304,7 @@ export function useMultiSelect( |
|
|
|
} |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
useEventListener(document, 'keydown', onKeyDown) |
|
|
|
useEventListener(document, 'keydown', onKeyDown) |
|
|
|