mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 01:27:05 +00:00
WIP mapViewStore
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import type { ComputedRef, Ref } from 'vue'
|
||||
import type { MapType, TableType, ViewType } from 'nocodb-sdk'
|
||||
import { ref, useApi, useInjectionState } from '#imports'
|
||||
import type { Row } from '~/lib'
|
||||
|
||||
const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
|
||||
(
|
||||
meta: Ref<TableType | MapType | undefined>,
|
||||
viewMeta: Ref<ViewType | MapType | undefined> | ComputedRef<(ViewType & { id: string }) | undefined>,
|
||||
) => {
|
||||
const formattedData = ref<string[]>()
|
||||
const formattedData = ref<Row[]>()
|
||||
|
||||
const { api } = useApi()
|
||||
const { project } = useProject()
|
||||
|
||||
Reference in New Issue
Block a user