Files
nocodb/packages/nc-gui/components/dashboard/MiniSidebar/ItemWrapper.vue
2025-05-28 09:42:16 +00:00

26 lines
577 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="nc-mini-sidebar-btn-full-width">
<div
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>
</div>
<slot v-else />
</template>