HarmonyOS 鸿蒙Next 自定义的非@Entry组件怎样获取父组件的onPageShow回调?
HarmonyOS 鸿蒙Next 自定义的非@Entry组件怎样获取父组件的onPageShow回调?
在HomePage(@Entry装饰)页面中,有4个TabContent,TabContent的页面内容使用了自定义组件,其中一个TabContent的内容里面的组件需要在页面重新显示时刷新数据,但TabContent里面的页面不会回调onPageShow方法,怎样才可以知道父组件回调了onPageShow方法?
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-custom-component-lifecycle-V5#onpageshow
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-custom-component-lifecycle-V5#onpageshow
更多关于HarmonyOS 鸿蒙Next 自定义的非@Entry组件怎样获取父组件的onPageShow回调?的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复