harmony 鸿蒙ArkUI Subsystem Changelog
ArkUI Subsystem Changelog
cl.arkui.1 Method Name Changes in NavPathStack
Key API/Component Changes
NavPathStack
| Before Change|After Change|
| —-|—-|
|push|pushPath|
|pushName|pushNameByPath|
|popTo|PopToName|
Change Impact
After the SDK is updated to 4.0.10.x, if any of the old method names is used in the code, a compilation error will be reported.
Property ‘push’ does not exist on type ‘NavPathStack’.
Property ‘pushName’ does not exist on type ‘NavPathStack’.
Property ‘pop’ does not exist on type ‘NavPathStack’.
Adaptation Guide
Update the code to use the new method names.
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')
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦