Add indeterminate mode
This commit is contained in:
@@ -18,4 +18,15 @@ npm i @tp/tp-progress-bar
|
||||
|
||||
| Property | Type | Description |
|
||||
| -------- | ---- | ----------- |
|
||||
| `progress` | `Number` | The current progress of the progress bar.
|
||||
| `progress` | `Number` | The current progress of the progress bar (0-100). Ignored when `indeterminate` is set. |
|
||||
| `indeterminate` | `Boolean` | When set, shows an animated indicator that travels back and forth continuously. Use for operations whose progress can't be determined. |
|
||||
|
||||
## Usage
|
||||
|
||||
```html
|
||||
<!-- Determinate -->
|
||||
<tp-progress-bar progress="50"></tp-progress-bar>
|
||||
|
||||
<!-- Indeterminate -->
|
||||
<tp-progress-bar indeterminate></tp-progress-bar>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user