组件周期事件
与组件周期相关的,还有一组特定的周期事件,它们会在组件状态变更后,触发出来。通过它们,我们可以在组件外部追加特定的周期逻辑。
$inited
组件完成初始化后触发,对应inited
为true
$rendered
组件渲染完成后触发,对应rendered
为true
$mounted
组件挂载后触发,对应mounted
为true
$destroyed
@since v2.1.0
组件销毁时触发,对应destroyed
为true
本文档使用 BookStack 构建