Skip to content

Commit

Permalink
docs: add loading en doc (#1295)
Browse files Browse the repository at this point in the history
Co-authored-by: sunzhe <[email protected]>
  • Loading branch information
xiaosansiji and sunzhe authored Apr 21, 2023
1 parent 15dce64 commit 16fb8b7
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions docs/web/api/loading.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: Loading
description: Representation of the state when data is being loaded when the network is slow or when there is a lot of data.
isComponent: true
usage: { title: '', description: '' }
spline: message
---

### Icon Loading
Only the icon is displayed during loading. Suitable for loading scenarios where modules are waiting to refresh after opening the page or completing an operation.

{{ base }}

### Text Loading
Text is displayed during loading. Suitable for loading scenarios where modules are waiting to refresh after opening the page or completing an operation.

{{ text }}

### Icon and Text Loading
Text and icons are displayed together during loading. Suitable for loading scenarios where the entire page is waiting to refresh after opening the page or completing an operation.

{{ icon-text }}

### Different Sizes
The small size is suitable for loading scenarios within the component, the medium size is suitable for loading scenarios in container areas such as cards, tables, etc., and the large size is suitable for full-screen loading scenarios on pages.

{{ size }}

### Wrapped Loading
The Loading component can wrap the content that needs to display the loading state.

{{ wrap }}

### Delayed Loading
Set the minimum delay response time, and the loading state will not be displayed for operations with a response time lower than the response time.

{{ delay }}

### Full-screen Loading
The loading state is displayed full-screen, preventing the user from operating.

{{ fullscreen }}

### Attached to a Specific Element
The Loading component can be attached to a specific element using attach.

Note: The element being attached to (the parent element of loading) should set `position: relative;`.

{{ attach }}

### Function Call
{{ service }}

0 comments on commit 16fb8b7

Please sign in to comment.