mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 13:56:40 +00:00
20 lines
416 B
Vue
20 lines
416 B
Vue
<script lang="ts" setup>
|
|
import type { ProjectType } from 'nocodb-sdk'
|
|
import { ProjectInj, ProjectRoleInj } from '#imports'
|
|
|
|
const props = defineProps<{
|
|
projectRole: string | string[]
|
|
project: ProjectType
|
|
}>()
|
|
|
|
const projectRole = toRef(props, 'projectRole')
|
|
const project = toRef(props, 'project')
|
|
|
|
provide(ProjectRoleInj, projectRole)
|
|
provide(ProjectInj, project)
|
|
</script>
|
|
|
|
<template>
|
|
<slot />
|
|
</template>
|