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
  4. 2
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.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 hideMenu = toRef(props, 'hideMenu')
const meta = inject(MetaInj)
const isForm = inject(IsFormInj, ref(false)) const isForm = inject(IsFormInj, ref(false))
const column = toRef(props, 'column') const column = toRef(props, 'column')

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

@ -1,7 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { substituteColumnIdWithAliasInFormula } from 'nocodb-sdk' import { substituteColumnIdWithAliasInFormula } from 'nocodb-sdk'
import type { ColumnType, FormulaType, LinkToAnotherRecordType, LookupType, RollupType, TableType } from 'nocodb-sdk' import type { ColumnType, FormulaType, LinkToAnotherRecordType, LookupType, RollupType } from 'nocodb-sdk'
import type { Ref } from 'vue'
import { ColumnInj, IsFormInj, MetaInj } from '~/context' import { ColumnInj, IsFormInj, MetaInj } from '~/context'
import { provide, toRef, useMetas } from '#imports' 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') }} {{ $t('activity.createView') }}
</h3> </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"> <a-tooltip placement="left">
<template #title> <template #title>
{{ $t('msg.info.addView.grid') }} {{ $t('msg.info.addView.grid') }}
@ -59,7 +63,11 @@ function onOpenModal(type: ViewTypes, title = '') {
</a-tooltip> </a-tooltip>
</a-menu-item> </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"> <a-tooltip placement="left">
<template #title> <template #title>
{{ $t('msg.info.addView.gallery') }} {{ $t('msg.info.addView.gallery') }}

2
packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue

@ -61,7 +61,7 @@ const icon = (tab: TabItem) => {
<a-sub-menu key="addORImport"> <a-sub-menu key="addORImport">
<template #title> <template #title>
<div class="text-sm flex items-center gap-2 pt-[8px] pb-3"> <div class="text-sm flex items-center gap-2 pt-[8px] pb-3">
<MdiPlusBoxOutline/> <MdiPlusBoxOutline />
Add / Import Add / Import
</div> </div>
</template> </template>

Loading…
Cancel
Save