spz-loading
Displays a loading with an overlay.
Layouts
跳转到“Layouts”Usage
跳转到“Usage”When like spz-lightbox
need to have their own mask, you can put spz-loading
into a box with an id, set the mask-id to the id of the box, and you can use the spz-loading
in the box as its own. The spz-loading
needs to set role="mask
attribute.
<div id="overlay-wrapper">
<spz-loading layout="container" hidden role="mask"></spz-loading>
<spz-lightbox layout="nodisplay" id="lightbox" has-mask mask-id="overlay-wrapper">
<div>
Content
</div>
</spz-lightbox>
</div>
<button type="button" @tap="lightbox.open">Open lightbox</button>
Attributes
跳转到“Attributes”animate-in
跳转到“animate-in”Using a few animations to show the loading. It has the following values:
Value | Description | Is default |
---|---|---|
fade-in | Be shown in fade-in and fade-out animation |
Yes |
fly-in-bottom | Be shown in fly-from-bottom animation |
- |
fly-in-top | Be shown in fly-from-top animation |
- |
Actions
跳转到“Actions”show
跳转到“show”To show the loading.
close
跳转到“close”To close the loading.