开源鸿蒙 ForEach

The development framework provides ForEach to iterate arrays and create components for each array item. If a large number of elements are involved in ForEach, the page loading may become slow. For best possible results, you are advised to use LazyForEach instead. ForEach is defined as follows:
阅读全文

开源鸿蒙 Configuration Without Parameters

If the API definition of a component does not contain mandatory parameters, you do not need to configure any content in the parentheses next to the component. For example, the Divider component does not contain parameters:
阅读全文

开源鸿蒙 @Watch

@Watch is used to listen for changes of state variables. The syntax structure is as follows:
阅读全文

开源鸿蒙 @Consume and @Provide

As the data provider, @Provide can update the data of child nodes and trigger page rendering. After @Consume detects that the @Provide data is updated, it will initiate re-rendering of the current view.
阅读全文

开源鸿蒙 Basic Concepts

The TypeScript-based declarative development paradigm provides a wide array of basic components, which can be combined and extended in a declarative manner to describe the UI of an application. It also provides basic data binding and event processing mechanisms to help you implement the application
阅读全文

开源鸿蒙 build Function

The build function meets the definition of the Builder API and is used to define the declarative UI description of components. Components must comply with the preceding Builder API constraints. Custom or preset components are combined in declarative mode in the build method. The build method is call
阅读全文

开源鸿蒙 “js” Tag

Configure the “js” tag in the config.json file of your application. The “js” tag contains the instance name, page route, and window configuration information.
阅读全文