Browse Source

chore(gui-v2,deps): export useGridViewColumnWidth from barrel file

pull/2877/head
braks 2 years ago
parent
commit
77e9aabc4b
  1. 2
      packages/nc-gui-v2/composables/index.ts
  2. 6
      packages/nc-gui-v2/composables/useGridViewColumnWidth.ts

2
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'

6
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<GridType & { id?: string }>) => {
export function useGridViewColumnWidth(view: Ref<(GridType & { id?: string }) | undefined>) {
const { css, load: loadCss, unload: unloadCss } = useStyleTag('')
const { isUIAllowed } = useUIPermission()
const { $api } = useNuxtApp()

Loading…
Cancel
Save