Files
nocodb/packages/nc-gui/components/dashboard/Sidebar/MiniSidebarItemWrapper.vue
2025-05-19 10:52:54 +00:00

25 lines
507 B
Vue

<script setup lang="ts">
interface Props {
size?: 'default' | 'small'
}
withDefaults(defineProps<Props>(), {
size: 'default',
})
const { isWorkspacesLoading } = storeToRefs(useWorkspace())
</script>
<template>
<div
v-if="isWorkspacesLoading"
class="w-7"
:class="{
'h-7 ': size === 'default',
'h-9 py-1': size === 'small',
}"
>
<a-skeleton-avatar active shape="square" class="!h-full !w-full !children:(rounded-md w-7 h-7)" />
</div>
<slot v-else />
</template>