openharmony 鸿蒙 changelogs-arkui

2023-10-30 浏览 (322)

arkui子系统ChangeLog

cl.arkui.1 NavPathStack类中的方法名称变更

关键接口/组件变更

NavPathStack

变更前变更后
pushpushPath
pushNamepushNameByPath
popToPopToName

变更影响

更新4.0.10.x SDK之后,如果代码未变更方法名称,将出现编译报错。
Property 'push' does not exist on type 'NavPathStack'.
Property 'pushName' does not exist on type 'NavPathStack'.
Property 'pop' does not exist on type 'NavPathStack'.

适配指导

需更新应用代码

navPathStack = new NavPathStack();
this.navPathStack.push(...)
this.navPathStack.pushPath(...)

this.navPathStack.pushName('navidesnation_add',this.value)
this.navPathStack.pushPathByName('navidesnation_add',this.value) 

this.navPathStack.pop('navidesnation_add')
this.navPathStack.popToName('navidesnation_add')

你可能感兴趣的鸿蒙文章

harmony 鸿蒙文件子系统ChangeLog

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/f717e601449a447da68ec8f3fa1b317c