Files
basic/src/components/AuthAll/index.vue
T

22 lines
341 B
Vue

<script setup name="AuthAll">
import { authAll } from '@/util'
const props = defineProps({
value: {
type: Array,
default: () => []
}
})
function check() {
return authAll(props.value)
}
</script>
<template>
<div>
<slot v-if="check()" />
<slot v-else name="no-auth" />
</div>
</template>