Lines Matching refs:Index
82 // Index.ets
93 console.info('Index onPageShow');
97 console.info('Index onPageHide');
102 console.info('Index onBackPress');
213 …上示例中,Index页面包含两个自定义组件,一个是被\@Entry装饰的MyComponent,也是页面的入口组件,即页面的根节点;一个是Child,是MyComponent的子组件。只有\@En…
216 …Build--> Child aboutToAppear --> Child build --> Child onDidBuild --> Index onPageShow。
221 …to next page”,调用router.pushUrl接口,跳转到另外一个页面,当前Index页面隐藏,执行页面生命周期Index onPageHide。此处调用的是router.pushU…
223 - 如果调用的是router.replaceUrl,则当前Index页面被销毁,上文已经提到,组件的销毁是从组件树上直接摘下子树,所以执行的生命周期流程将变为:新页面的初始化生命周期流程,然后执行I…
225 - 点击返回按钮,触发页面生命周期Index onBackPress,且触发返回一个页面后会导致当前Index页面被销毁。
227 - 最小化应用或者应用进入后台,触发Index onPageHide。当前Index页面没有被销毁,所以并不会执行组件的aboutToDisappear。应用回到前台,执行Index onPageS…
230 - 退出应用,执行Index onPageHide --> MyComponent aboutToDisappear --> Child aboutToDisappear。
237 // Index.ets
242 struct Index {
247 console.log(`Index onPageShow`);
249 console.log(`Index onPageHide`);
268 url: 'pages/Index'