onInit
|
Function
|
Custom component initialization
|
Triggered once, when a custom component is created.
|
onAttached
|
Function
|
Custom component loading
|
Triggered when a custom component is added to the <Page> component tree. When this callback is triggered, related data can be displayed during the lifecycle in scenarios such as image loading and animation playback.
|
onLayoutReady
|
Function
|
Component layout completion
|
Triggered when layout calculation, including content size and position adjustment, is complete for a custom component.
|
onDetached
|
Function
|
Custom component removal
|
Triggered when a custom component is removed. It is usually used to stop animation or asynchronous logic execution.
|
onDestroy
|
Function
|
Custom component destruction
|
Triggered when a custom component is destroyed. It is usually used to release resources.
|
onPageShow
|
Function
|
Page display of a custom component
|
Triggered when the page where a custom component is located is displayed.
|
onPageHide
|
Function
|
Page hiding of a custom component
|
Triggered when the page where a custom component is located is hidden.
|