Browse Source

chore(gui-v2): lint

pull/3153/head
Wing-Kam Wong 2 years ago
parent
commit
fb52b7e65e
  1. 2
      packages/nc-gui-v2/components/smartsheet-header/Cell.vue
  2. 3
      packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue
  3. 12
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue

2
packages/nc-gui-v2/components/smartsheet-header/Cell.vue

@ -6,8 +6,6 @@ const props = defineProps<{ column: ColumnType & { meta: any }; required?: boole
const hideMenu = toRef(props, 'hideMenu')
const meta = inject(MetaInj)
const isForm = inject(IsFormInj, ref(false))
const column = toRef(props, 'column')

3
packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

@ -1,7 +1,6 @@
<script setup lang="ts">
import { substituteColumnIdWithAliasInFormula } from 'nocodb-sdk'
import type { ColumnType, FormulaType, LinkToAnotherRecordType, LookupType, RollupType, TableType } from 'nocodb-sdk'
import type { Ref } from 'vue'
import type { ColumnType, FormulaType, LinkToAnotherRecordType, LookupType, RollupType } from 'nocodb-sdk'
import { ColumnInj, IsFormInj, MetaInj } from '~/context'
import { provide, toRef, useMetas } from '#imports'

12
packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue

@ -41,7 +41,11 @@ function onOpenModal(type: ViewTypes, title = '') {
{{ $t('activity.createView') }}
</h3>
<a-menu-item key="grid" class="group !flex !items-center !my-0 !h-[30px] nc-create-3-view" @click="onOpenModal(ViewTypes.GRID)">
<a-menu-item
key="grid"
class="group !flex !items-center !my-0 !h-[30px] nc-create-3-view"
@click="onOpenModal(ViewTypes.GRID)"
>
<a-tooltip placement="left">
<template #title>
{{ $t('msg.info.addView.grid') }}
@ -59,7 +63,11 @@ function onOpenModal(type: ViewTypes, title = '') {
</a-tooltip>
</a-menu-item>
<a-menu-item key="gallery" class="group !flex !items-center !-my0 !h-[30px] nc-create-2-view" @click="onOpenModal(ViewTypes.GALLERY)">
<a-menu-item
key="gallery"
class="group !flex !items-center !-my0 !h-[30px] nc-create-2-view"
@click="onOpenModal(ViewTypes.GALLERY)"
>
<a-tooltip placement="left">
<template #title>
{{ $t('msg.info.addView.gallery') }}

Loading…
Cancel
Save