mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:18:19 +08:00
22 lines
341 B
Vue
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>
|