Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3776/head
Pranav C 2 years ago
parent
commit
5aa6d1e0f3
  1. 7
      packages/nc-gui/components/smartsheet/Grid.vue
  2. 7
      packages/nc-gui/composables/useLTARStore.ts

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

@ -430,12 +430,7 @@ watch([() => selected.row, () => selected.col], ([row, col]) => {
</thead> </thead>
<!-- this prevent select text from field if not in edit mode --> <!-- this prevent select text from field if not in edit mode -->
<tbody ref="tbodyEl" @selectstart.prevent> <tbody ref="tbodyEl" @selectstart.prevent>
<LazySmartsheetRow <LazySmartsheetRow v-for="(row, rowIndex) of data" ref="rowRefs" :key="rowIndex" :row="row">
v-for="(row, rowIndex) of data"
ref="rowRefs"
:key="rowIndex"
:row="row"
>
<template #default="{ state }"> <template #default="{ state }">
<tr class="nc-grid-row"> <tr class="nc-grid-row">
<td key="row-index" class="caption nc-grid-cell pl-5 pr-1"> <td key="row-index" class="caption nc-grid-cell pl-5 pr-1">

7
packages/nc-gui/composables/useLTARStore.ts

@ -28,7 +28,12 @@ interface DataApiResponse {
/** Store for managing Link to another cells */ /** Store for managing Link to another cells */
const [useProvideLTARStore, useLTARStore] = useInjectionState( const [useProvideLTARStore, useLTARStore] = useInjectionState(
(column: Ref<Required<ColumnType>>, row: Ref<Row>, isNewRow: ComputedRef<boolean> | Ref<boolean>, reloadData = (showProgress?:boolean) => {}) => { (
column: Ref<Required<ColumnType>>,
row: Ref<Row>,
isNewRow: ComputedRef<boolean> | Ref<boolean>,
reloadData = (_showProgress?: boolean) => {},
) => {
// state // state
const { metas, getMeta } = useMetas() const { metas, getMeta } = useMetas()

Loading…
Cancel
Save