Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
635 B
Vue
29 lines
635 B
Vue
<script lang="ts" setup>
|
|
import { VbenSpinner } from '@vben-core/shadcn-ui';
|
|
import { cn } from '@vben-core/shared/utils';
|
|
|
|
interface SpinnerProps {
|
|
class?: string;
|
|
/**
|
|
* @zh_CN 最小加载时间
|
|
* @en_US Minimum loading time
|
|
*/
|
|
minLoadingTime?: number;
|
|
/**
|
|
* @zh_CN loading状态开启
|
|
*/
|
|
spinning?: boolean;
|
|
}
|
|
defineOptions({ name: 'Spinner' });
|
|
const props = defineProps<SpinnerProps>();
|
|
</script>
|
|
<template>
|
|
<div :class="cn('relative min-h-20', props.class)">
|
|
<slot></slot>
|
|
<VbenSpinner
|
|
:min-loading-time="props.minLoadingTime"
|
|
:spinning="props.spinning"
|
|
/>
|
|
</div>
|
|
</template>
|