|
|
@ -2,15 +2,20 @@ |
|
|
|
import type { BaseType } from 'nocodb-sdk' |
|
|
|
import type { BaseType } from 'nocodb-sdk' |
|
|
|
import { ProjectInj, ProjectRoleInj } from '#imports' |
|
|
|
import { ProjectInj, ProjectRoleInj } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ |
|
|
|
const props = withDefaults( |
|
|
|
|
|
|
|
defineProps<{ |
|
|
|
baseRole: string | string[] |
|
|
|
baseRole: string | string[] |
|
|
|
base: BaseType |
|
|
|
base: BaseType |
|
|
|
}>() |
|
|
|
}>(), |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
baseRole: '', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const baseRole = toRef(props, 'baseRole') |
|
|
|
const baseRole = toRef(props, 'baseRole') |
|
|
|
const base = toRef(props, 'base') |
|
|
|
const base = toRef(props, 'base') |
|
|
|
|
|
|
|
|
|
|
|
provide(ProjectRoleInj, baseRole) |
|
|
|
provide(ProjectRoleInj, baseRole ?? '') |
|
|
|
provide(ProjectInj, base) |
|
|
|
provide(ProjectInj, base) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|