Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4222/head
Pranav C 2 years ago
parent
commit
6dba597fef
  1. 5
      packages/nc-gui/components/cell/attachment/index.vue
  2. 8
      packages/nc-gui/components/smartsheet/Grid.vue
  3. 5
      packages/nc-gui/composables/useMultiSelect/index.ts

5
packages/nc-gui/components/cell/attachment/index.vue

@ -124,9 +124,8 @@ watch(
} }
}, },
{ {
immediate: true immediate: true,
} },
,
) )
/** updates attachments array for autosave */ /** updates attachments array for autosave */

8
packages/nc-gui/components/smartsheet/Grid.vue

@ -206,25 +206,25 @@ const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange
selected.row = 0 selected.row = 0
selected.col = selected.col ?? 0 selected.col = selected.col ?? 0
scrollToCell?.() scrollToCell?.()
editEnabled = false; editEnabled = false
return true return true
case 'ArrowDown': case 'ArrowDown':
selected.row = data.value.length - 1 selected.row = data.value.length - 1
selected.col = selected.col ?? 0 selected.col = selected.col ?? 0
scrollToCell?.() scrollToCell?.()
editEnabled = false; editEnabled = false
return true return true
case 'ArrowRight': case 'ArrowRight':
selected.row = selected.row ?? 0 selected.row = selected.row ?? 0
selected.col = fields.value?.length - 1 selected.col = fields.value?.length - 1
scrollToCell?.() scrollToCell?.()
editEnabled = false; editEnabled = false
return true return true
case 'ArrowLeft': case 'ArrowLeft':
selected.row = selected.row ?? 0 selected.row = selected.row ?? 0
selected.col = 0 selected.col = 0
scrollToCell?.() scrollToCell?.()
editEnabled = false; editEnabled = false
return true return true
} }
} }

5
packages/nc-gui/composables/useMultiSelect/index.ts

@ -1,6 +1,6 @@
import type { MaybeRef } from '@vueuse/core' import type { MaybeRef } from '@vueuse/core'
import { UITypes } from 'nocodb-sdk' import { UITypes } from 'nocodb-sdk'
import { message, reactive, unref, useCopy, useEventListener, useI18n, ref } from '#imports' import { message, reactive, ref, unref, useCopy, useEventListener, useI18n } from '#imports'
interface SelectedBlock { interface SelectedBlock {
row: number | null row: number | null
@ -227,7 +227,8 @@ export function useMultiSelect(
editEnabled.value = false editEnabled.value = false
} }
break break
default: { default:
{
const rowObj = unref(data)[selected.row] const rowObj = unref(data)[selected.row]
const columnObj = unref(fields)[selected.col] const columnObj = unref(fields)[selected.col]

Loading…
Cancel
Save