多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
475 B

import type { TableReqType, TableType } from 'nocodb-sdk'
import type { MaybeRef } from '@vueuse/core'
// DEPRECATED: Use useViewsStore instead
function useViews(_: MaybeRef<TableType | TableReqType | undefined>) {
const viewsStore = useViewsStore()
const { loadViews } = viewsStore
const { isViewsLoading, views } = storeToRefs(viewsStore)
const isLoading = computed(() => isViewsLoading.value)
return { views, isLoading, loadViews }
}
export default useViews