Skip to content

SeeLoadingPage

A fullscreen or area loading page with built-in loading animation and message text.

Basic Usage

Control the loading state via loading. After loading completes, the default slot content is displayed.

vue
<template>
  <see-loading-page :loading="isLoading" message="Loading...">
    <view>Content loaded!</view>
  </see-loading-page>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const isLoading = ref(true)
</script>

Custom Message

Set the loading message via the message prop.

vue
<see-loading-page :loading="true" message="Fetching data, please wait..." />

Custom Icon Type

Set the loading icon type via iconType. Supported values: spinner, circular, dots, pulse.

vue
<see-loading-page :loading="true" iconType="circular" />

Fullscreen Mode

Set isFullscreen to true to make the loading overlay cover the entire screen.

vue
<see-loading-page :loading="true" isFullscreen message="Fullscreen loading..." />

Custom Background

Set the mask background color via background.

vue
<see-loading-page :loading="true" background="rgba(0, 0, 0, 0.6)" />

Props

PropDescriptionTypeDefault
loadingWhether loadingbooleantrue
messageLoading message textstring'加载中...'
iconTypeLoading icon type'spinner' | 'circular' | 'dots' | 'pulse''spinner'
iconSizeLoading icon sizestring'80rpx'
isFullscreenWhether fullscreenbooleanfalse
backgroundBackground colorstring-
zIndexz-index levelnumber999

Slots

NameDescription
defaultContent shown after loading completes

Liao ICP No. 2025070134