Files
team-api/web/admin/src/App.vue
T

18 lines
607 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import TopProgress from '@/components/TopProgress.vue'
import TableEmpty from '@/components/TableEmpty.vue'
</script>
<template>
<TopProgress />
<AConfigProvider>
<!-- 全局空态:表格(组件 tab 传 component="table")统一显示插画 + 提示文字;
其余场景(非 table 的裸 AEmpty)回退 Arco 默认,避免影响下拉框等小空态 -->
<template #empty="{ component }">
<TableEmpty v-if="component === 'table'" />
<AEmpty v-else in-config-provider />
</template>
<router-view />
</AConfigProvider>
</template>