mirror of
https://gitee.com/AntdUI/AntdUI.git
synced 2025-12-06 08:08:52 +08:00
1.6 KiB
1.6 KiB
Spin
👚
Used for the loading status of a page or a block.
- DefaultProperty:Text
- DefaultEvent:Click
Property
| Name | Description | Type | Default Value |
|---|---|---|---|
| Text | Text | string? |
null |
| 🌏 LocalizationText | International Text | string? |
null |
| Fill | Colour | Color? |
null |
| ForeColor | Text color | Color? |
null |
Method
All
IControlthat inherit FHIR trol support theSpinmethod
| Name | Description | Return Value | Parameters |
|---|---|---|---|
| Spin | LOADING | void | Action action Commission to wait for, Action? end = null Post completion callback |
| Spin | LOADING | void | Spin.Config Config, Action action Commission to wait for, Action? end = null Post completion callback |
Config
Spin.Config
| Name | Description | Type | Default Value |
|---|---|---|---|
| Text | Text | string? |
null |
| Back | Background color | Color? |
null |
| Color | Colour | Color? |
null |
| Fore | Text color | Color? |
null |
| Radius | Rounded corners | int? |
null |
| Font | Font | Font? |
null |
| Value | Progress | float? |
null |
Code Example
panel1.Spin(config => {
// Time consuming code
sleep(1000);
},()=>{
//Loading completed
});
AntdUI.Spin.open(panel1, config => {
// Time consuming code
sleep(1000);
},()=>{
//Loading completed
});
