From 77e9aabc4ba4c6a7436651a4b7824e90e0636fd3 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 1 Aug 2022 11:51:54 +0200 Subject: [PATCH] chore(gui-v2,deps): export useGridViewColumnWidth from barrel file --- packages/nc-gui-v2/composables/index.ts | 2 ++ packages/nc-gui-v2/composables/useGridViewColumnWidth.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui-v2/composables/index.ts b/packages/nc-gui-v2/composables/index.ts index b359f3b2fa..b9e13de6d8 100644 --- a/packages/nc-gui-v2/composables/index.ts +++ b/packages/nc-gui-v2/composables/index.ts @@ -5,6 +5,8 @@ export * from './useAttachment' export * from './useBelongsTo' export * from './useColors' export * from './useColumn' +export * from './useGridViewColumnWidth' +export * from './useHasMany' export * from './useManyToMany' export * from './useMetas' export * from './useProject' diff --git a/packages/nc-gui-v2/composables/useGridViewColumnWidth.ts b/packages/nc-gui-v2/composables/useGridViewColumnWidth.ts index 72f863f24b..5b04afe2ca 100644 --- a/packages/nc-gui-v2/composables/useGridViewColumnWidth.ts +++ b/packages/nc-gui-v2/composables/useGridViewColumnWidth.ts @@ -1,11 +1,11 @@ import { useStyleTag } from '@vueuse/core' import type { ColumnType, GridColumnType, GridType } from 'nocodb-sdk' import type { Ref } from 'vue' -import useMetas from '~/composables/useMetas' -import useUIPermission from '~/composables/useUIPermission' +import { useMetas } from './useMetas' +import { useUIPermission } from './useUIPermission' // todo: update swagger -export default (view: Ref) => { +export function useGridViewColumnWidth(view: Ref<(GridType & { id?: string }) | undefined>) { const { css, load: loadCss, unload: unloadCss } = useStyleTag('') const { isUIAllowed } = useUIPermission() const { $api } = useNuxtApp()