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.
24 lines
438 B
24 lines
438 B
<script lang="ts" setup> |
|
import type { BaseType } from 'nocodb-sdk' |
|
import { ProjectInj, ProjectRoleInj } from '#imports' |
|
|
|
const props = withDefaults( |
|
defineProps<{ |
|
baseRole: string | string[] |
|
base: BaseType |
|
}>(), |
|
{ |
|
baseRole: '', |
|
}, |
|
) |
|
|
|
const baseRole = toRef(props, 'baseRole') |
|
const base = toRef(props, 'base') |
|
|
|
provide(ProjectRoleInj, baseRole) |
|
provide(ProjectInj, base) |
|
</script> |
|
|
|
<template> |
|
<slot /> |
|
</template>
|
|
|