mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 18:58:17 +00:00
fix(nc-gui): add debug console
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import dayjs from 'dayjs'
|
||||
import type { AttachmentType, ColumnType, LinkToAnotherRecordType, SelectOptionsType } from 'nocodb-sdk'
|
||||
import { UITypes, getDateFormat, getDateTimeFormat, populateUniqueFileName } from 'nocodb-sdk'
|
||||
import { ColumnHelper, UITypes, getDateFormat, getDateTimeFormat, populateUniqueFileName } from 'nocodb-sdk'
|
||||
import { SilentTypeConversionError } from '~/error/silent-type-conversion.error'
|
||||
import { SelectTypeConversionError } from '~/error/select-type-conversion.error'
|
||||
import { ComputedTypePasteError } from '~/error/computed-type-paste.error'
|
||||
@@ -26,6 +26,11 @@ export default function convertCellData(
|
||||
// return null if value is empty
|
||||
if (value === '' && to !== UITypes.Attachment) return null
|
||||
|
||||
// Todo: remove after testing
|
||||
const serializedValue = ColumnHelper.serializeValue(value, column)
|
||||
|
||||
console.log('serializedValue', serializedValue, value, column.uidt)
|
||||
|
||||
switch (to) {
|
||||
case UITypes.SingleLineText:
|
||||
case UITypes.LongText:
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
UserFieldRecordType,
|
||||
ViewType,
|
||||
} from 'nocodb-sdk'
|
||||
import { UITypes, isDateMonthFormat, isSystemColumn, isVirtualCol, populateUniqueFileName } from 'nocodb-sdk'
|
||||
import { ColumnHelper, UITypes, isDateMonthFormat, isSystemColumn, isVirtualCol, populateUniqueFileName } from 'nocodb-sdk'
|
||||
import { parse } from 'papaparse'
|
||||
import type { Ref } from 'vue'
|
||||
import { computed } from 'vue'
|
||||
@@ -159,6 +159,11 @@ export function useMultiSelect(
|
||||
const valueToCopy = (rowObj: Row, columnObj: ColumnType) => {
|
||||
let textToCopy = (columnObj.title && rowObj.row[columnObj.title]) || ''
|
||||
|
||||
// Todo: remove after testing
|
||||
const parsedValue = ColumnHelper.parseValue(textToCopy, columnObj)
|
||||
|
||||
console.log('parsedValue', parsedValue, textToCopy, columnObj.uidt)
|
||||
|
||||
if (columnObj.uidt === UITypes.Checkbox) {
|
||||
textToCopy = !!textToCopy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user