Component Animation Create and run an animation shortcut on the component. For details, see Universal Methods. Obtaining an Animation Object Call the animate method to obtain an animation object, whic
阅读全文
openharmony 鸿蒙 ui-js-animate-background-position-style
Animation with the background-position Attribute By changing the background-position attribute (where the first value is the position on the x-axis and the second value is the position on the y-axis),
阅读全文
openharmony 鸿蒙 ui-js-animate-attribute-style
Attribute Style Animation Keyframes are used to animate the scaling of a component by dynamically adjusting the width and height of its parent container. To scale both the child and parent components
阅读全文
开源鸿蒙 Basic Concepts
In the declarative UI programming paradigm, the UI is a function in the specific application state, and you update a UI by modifying the current application state. The development framework provides comprehensive application state management capabilities, as shown in the figure below.
阅读全文
开源鸿蒙 Types
The Color type used by component attribute methods is described as follows:
阅读全文
开源鸿蒙 Overview
This section defines the core mechanism and functions of the TypeScript-based declarative development paradigm. It acquaints you with the declarative UI descriptions, componentization mechanisms, UI state management, rendering control syntax, and syntactic sugar.
阅读全文
开源鸿蒙 About Syntactic Sugar
A decorator @Decorator can decorate a class, structure, or class attribute. Multiple decorators can be applied to the same target element and defined on a single line or multiple lines. It is recommended that the decorators be defined on multiple lines.
阅读全文
harmony(鸿蒙)Resource Access
ts-resource-access.md
阅读全文
开源鸿蒙 LazyForEach
The development framework provides LazyForEach to iterate data from provided data sources and create corresponding components during each iteration. LazyForEach is defined as follows:
阅读全文
开源鸿蒙 if/else
Use if/else for conditional rendering.
阅读全文