未验证 提交 6873cf00 编写于 作者: O openharmony_ci 提交者: Gitee

!2070 1984 处理完成:ts-ui-state-mgmt-concepts.md 增加状态变量说明

Merge pull request !2070 from ester.zhou/TR-1984
......@@ -9,9 +9,14 @@ The development framework provides comprehensive application state management ca
## State Variable Decorators<a name="section13236174803615"></a>
- **@State**: grants a component the state attribute. Each time the **@State** decorated variable changes, the component re-renders and updates the UI.
- **@Link**: allows a component to depend on some state attributes of its parent component. Each time the data in one component is updated, the state of the other component is updated, and the parent and child components are rendered again.
- **@Prop**: works in a way similar to that of **@Link**. The only difference is that the changes made by a child component are not synchronized to the parent component.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The state variable name cannot be **id**, for example, **@Prop id:number**.
## Application State Data<a name="section16386143212559"></a>
**AppStorage** is the central store of the application states used in the entire UI. The UI framework creates a singleton **AppStorage** object for the application and provides the corresponding decorators and APIs for the application.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册