dlt.showLoading
Introduction
Displays a loading prompt.
Parameters
Object object
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| title | string | No | Content of the prompt | |
| duration | number | 3500 | No | Display duration of the prompt |
| mask | boolean | true | No | Whether to show a transparent mask to prevent touch-through |
| success | function | No | Callback function for a successful interface call | |
| fail | function | No | Callback function for a failed interface call | |
| complete | function | No | Callback function for the completion of the interface call (executed regardless of success or failure) |
Sample Code
dlt.showLoading({
success(res) {
console.log('success: ', res);
},
});