Loading API
This page provides an overview of the Loading component API, detailing its props, emits, slots, and exposed methods/states.
Props
The Loading component accepts the following props:
| Prop | Default | Type | Description |
|---|---|---|---|
type | "simple" | EpicLoading or SvgLoading or "simple" | The type of loading animation to display. |
animationDuration | 1500 | number or 1000 or 1200 or 1500 or 2000 or 2500 or 3000 or 4000 or 5000 or 6000 or undefined | The duration of the animation in milliseconds. |
size | 20 | number or 40 or 50 or 55 or 60 or 64 or 65 or 66 or 70 or undefined | The size of the loading animation in pixels. |
color | "currentColor" | string or undefined | The color of the loading animation. |
class | "" | StyleClass or undefined | Custom CSS class for the loading container. |
Emits
The Loading component does not emit any events.
Slots
The Loading component does not provide any slots.
Expose
The Loading component exposes the following methods and states via ref:
| Expose | Value | Description |
|---|---|---|
type | LoadingProps["type"] | The current type of the loading animation. |
animationDuration | LoadingProps["animationDuration"] | The current animation duration in milliseconds. |
size | LoadingProps["size"] | The current size of the loading animation. |
color | LoadingProps["color"] | The current color of the loading animation. |
classLoading | LoadingProps["class"] | The current CSS class applied to the loading container. |