开源鸿蒙 @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:
阅读全文

开源鸿蒙 @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.
阅读全文