feat: multiple paste

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-06-03 12:48:48 +03:00
parent cf64048304
commit 3e72b16702
4 changed files with 244 additions and 67 deletions

View File

@@ -31,6 +31,12 @@ export default function convertCellData(
return parsedNumber
}
case UITypes.Checkbox:
if (typeof value === 'boolean') return value
if (typeof value === 'string') {
const strval = value.trim().toLowerCase()
if (strval === 'true' || strval === '1') return true
if (strval === 'false' || strval === '0' || strval === '') return false
}
return Boolean(value)
case UITypes.Date: {
const parsedDate = dayjs(value)