Browse Source

chore(gui-v2): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
5a5d4f3865
  1. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue
  2. 6
      packages/nc-gui-v2/composables/useViewData.ts

2
packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue

@ -19,7 +19,7 @@ const columns = computed(() =>
size="small" size="small"
class="max-w-[250px]" class="max-w-[250px]"
placeholder="Filter query" placeholder="Filter query"
@pressEnter="reloadData.trigger()" @press-enter="reloadData.trigger()"
> >
<template #addonBefore> <template #addonBefore>
<a-select v-model:value="search.field" :options="columns" style="width: 80px" class="!text-xs" size="small" /> <a-select v-model:value="search.field" :options="columns" style="width: 80px" class="!text-xs" size="small" />

6
packages/nc-gui-v2/composables/useViewData.ts

@ -1,4 +1,4 @@
import type { Api, FormType, GalleryType, GridType, PaginatedType, TableType } from 'nocodb-sdk' import type { Api, PaginatedType, TableType, ViewType } from 'nocodb-sdk'
import type { ComputedRef, Ref } from 'vue' import type { ComputedRef, Ref } from 'vue'
import { useNuxtApp } from '#app' import { useNuxtApp } from '#app'
import { useProject } from '#imports' import { useProject } from '#imports'
@ -14,8 +14,8 @@ const formatData = (list: Record<string, any>[]) =>
export function useViewData( export function useViewData(
meta: Ref<TableType> | ComputedRef<TableType> | undefined, meta: Ref<TableType> | ComputedRef<TableType> | undefined,
viewMeta: viewMeta:
| Ref<(GridType | GalleryType | FormType) & { id: string }> | Ref<(ViewType) & { id: string }>
| ComputedRef<(GridType | GalleryType | FormType) & { id: string }> | ComputedRef<(ViewType) & { id: string }>
| undefined, | undefined,
where?: ComputedRef<string | undefined>, where?: ComputedRef<string | undefined>,
) { ) {

Loading…
Cancel
Save