Loading Delay ​
By setting options.loadingDelay
, you can delay the time when loading
turns to true
, effectively prevent UI flashing.
Code demonstration ​
Basic usage ​
If you hit run quickly, the data without loadingDelay will flash.
API ​
Property | Description | Type | Default |
---|---|---|---|
loadingDelay | Set the delay time for loading to become true | number | Ref<number> | 0 |
Remark ​
options.loadingDelay
supports dynamic changes.