开源鸿蒙 @Preview

You can use @Preview to decorate a custom component so that it can be previewed in DevEco Studio. This component is created and displayed when the page where it is located is loaded.
阅读全文

开源鸿蒙 @Extend

The @Extend decorator adds new attribute functions to preset components, such as <Text>, <Column>, and <Button>. You can use the @Extend decorator to quickly define and reuse the custom styles of a component.
阅读全文

开源鸿蒙 @Entry

The custom component decorated by @Entry functions as the default entry component of the respective page. When the page is loaded, the custom component decorated by @Entry is created and displayed first.
阅读全文

开源鸿蒙 @Component

A struct decorated by @Component has the componentization capability and can serve as an independent component. This type of component is also called a custom component, and its UI structure is described in the build method. Custom components have the following features:
阅读全文

开源鸿蒙 Child Component Configuration

For a component that supports child components, for example, a container component, add the UI descriptions of the child components inside “{ … }”. The <Column>, <Row>, <Stack>, <Button>, <Grid>, and <List> components are container components.
阅读全文

开源鸿蒙 Attribute Configuration

Use attribute methods to configure component attributes. An attribute method follows the corresponding component and is bound to the component using the “.” operator.
阅读全文

开源鸿蒙 AppStorage

AppStorage is a singleton object in an application, which is created by the UI framework when the application is started and destroyed when the application exits. It is used to provide central storage for changing state attributes of an application. AppStorage contains all the state attributes that
阅读全文

开源鸿蒙 PersistentStorage

ArkUI provides some static methods in the PersistentStorage class for managing persistent data of applications. Persistent data with specific tags can be linked to the AppStorage, and then the persistent data can be accessed through the AppStorage APIs. Alternatively, the @StorageLink decorator can
阅读全文