mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): correct finish
types and add to docs
resolves https://github.com/nuxt/nuxt/issues/26317
This commit is contained in:
parent
401370b3a0
commit
0d9c63b828
@ -39,7 +39,7 @@ Set `isLoading` to true and start to increase the `progress` value.
|
||||
|
||||
### `finish()`
|
||||
|
||||
Set the `progress` value to `100`, stop all timers and intervals then reset the loading state `500` ms later.
|
||||
Set the `progress` value to `100`, stop all timers and intervals then reset the loading state `500` ms later. `finish` accepts a `{ force: true }` option to skip the interval before the state is reset.
|
||||
|
||||
### `clear()`
|
||||
|
||||
|
@ -25,7 +25,7 @@ export type LoadingIndicator = {
|
||||
isLoading: Ref<boolean>
|
||||
start: () => void
|
||||
set: (value: number) => void
|
||||
finish: (opts: { force?: boolean }) => void
|
||||
finish: (opts?: { force?: boolean }) => void
|
||||
clear: () => void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user