ts-framework-directory.md
阅读全文
开源鸿蒙 Event Configuration
You can use event methods to configure events supported by components.
阅读全文
harmony(鸿蒙)Custom Component Lifecycle Callbacks
ts-custom-component-lifecycle-callbacks.md
阅读全文
harmony(鸿蒙)Initialization of Custom Components’ Member Variables
ts-custom-component-initialization.md
阅读全文
开源鸿蒙 Configuration with Mandatory Parameters
If the API definition of a component contains any mandatory parameter, set the parameters in the parentheses next to the component. Use constants to assign values to the parameters.
阅读全文
开源鸿蒙 @State
The @State decorated variable is the internal state data of the component. When the state data is modified, the build method of the component is called to refresh the UI.
阅读全文
开源鸿蒙 @Prop
@Prop and @State have the same semantics but different initialization modes. Variables decorated by @Prop must be initialized using the @State decorated variable provided by their parent components. The @Prop decorated variable can be modified in the component, but the modification is not updated to
阅读全文
开源鸿蒙 @Link
Two-way binding can be established between the @Link decorated variable and the @State decorated variable of the parent component. The @Link data has the following features:
阅读全文
harmony(鸿蒙)Component Creation and Re-initialization
ts-component-creation-re-initialization.md
阅读全文
开源鸿蒙 @Styles
The @Styles decorator adds new attribute functions to basic components, such as <Text>, <Column>, and <Button>. Currently, @Styles supports only universal attributes. You can use the @Styles decorator to quickly define and reuse the custom styles of a component.
阅读全文