Skip to content

Loading 加载

Basic · Display component

Progress feedback while loading.

On-demand importwbbb-ui/components/loading

Basic Usage

Example code
<script setup lang="ts">
import { WbbbLoading } from 'wbbb-ui/components/loading'
import 'wbbb-ui/styles/loading'
</script>

<template>
  <WbbbLoading />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

Default加载空态 / 失败Finished

API Reference

Props

PropertyDescriptionTypeDefaultRequired
colorSets the primary display color.string''No
sizeSets the component size.WbbbNumeric32No
textProvides the primary display text.string''No
verticalUses a vertical layout direction.booleanfalseNo

Events

None

Slots

None

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences