Migration for Data Object State Variables This document explains how to migrate data object state variables from V1 to V2. V1 DecoratorV2 Decorator @ObjectLink/@Observed /@Track@ObservedV2/@Trace Migr
阅读全文
openharmony 鸿蒙 arkts-decorator-overview
UI Decorator Overview The following table lists the common decorators in ArkUI. Common DecoratorDescription @RequireValidates constructor input parameters. @BuilderCustomizes builder function. @LocalB
阅读全文
openharmony 鸿蒙 arkts-v1-v2-migration-inner-component
Migration for Component State Variables This topic provides migration guidance for component state variables across different scenarios. V1 DecoratorV2 Decorator @StateNo external initialization: @Loc
阅读全文
openharmony 鸿蒙 arkts-v1-v2-update-difference
Differences Between State Management V1 and V2 Update Mechanisms Background of the Evolution from V1 State Management to V2 State Management State Management V1 uses proxies to observe data. When crea
阅读全文
openharmony 鸿蒙 arkts-state-management-faq-inner-component
In-Component State Management FAQs In ArkUI application development, proper use of state management within components directly affects the application performance and development efficiency. However,
阅读全文
openharmony 鸿蒙 arkts-extend-components-overview
Component Extension Overview ArkUI uses the @Builder decorator to provide developers with a code simplification solution. The decorator simplifies the UI development process through modular encapsulat
阅读全文
openharmony 鸿蒙 arkts-new-canBeObserved
canBeObserved API: Determining Whether an Object Can Be Observed During development and debugging, you may find that the UI page is not refreshed after the value of an object is modified. This problem
阅读全文
openharmony 鸿蒙 arkts-v1-v2-migration-rendering-control-repeat
Migration for Repeated Content Rendering This guide describes how to migrate components from V1 to V2, involving the following rendering control components. Source ComponentDestination Component ForEa
阅读全文
openharmony 鸿蒙 arkts-state-management-faq-inner-class
Data Object State Management FAQs A large number of data objects need to be encapsulated in large-scale applications. The use of internal status variables of data objects greatly affects the developme
阅读全文
openharmony 鸿蒙 arkts-v1-v2-migration-reusable
Migration for Component Reuse This document describes how to migrate components from V1 to V2, involving the following decorators. V1 DecoratorV2 Decorator @Reusable@ReusableV2 @Reusable->@Reusable
阅读全文