mirror of https://github.com/nocodb/nocodb
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.
20 lines
416 B
20 lines
416 B
1 year ago
|
<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>
|