返回 slidev
SlideLoading.vue
根目录 / packages / client / internals / SlideLoading.vue
1 <script setup lang="ts">
2 import { onMounted, ref } from 'vue'
3
4 const timeout = ref(false)
5 onMounted(() => {
6 setTimeout(() => {
7 timeout.value = true
8 }, 200)
9 })
10 </script>
11
12 <template>
13 <div class="h-full w-full flex items-center justify-center gap-2 slidev-slide-loading">
14 <template v-if="timeout">
15 <div class="i-svg-spinners-90-ring-with-bg text-xl" />
16 <div>Loading slide...</div>
17 </template>
18 </div>
19 </template>
20
20 lines Plain Text