# HarmonyPractice **Repository Path**: PrettyAnt/harmony-practice ## Basic Information - **Project Name**: HarmonyPractice - **Description**: harmonyOS Next练习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-02-02 - **Last Updated**: 2025-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: HarmonyOS组件 ## README # 笔记 - @StorageLink('xxx') 类似全局变量 - @Watch('xxx')观察函数,变量改变时,会触发被观察的函数 - @Component({ freezeWhenInactive: true }) 冻结功能,自定义组件处于非激活状态时,状态变量将不响应更新,即@Watch不会调用, - -- - ForEach `ForEach( this.items, (item: Item) => { } )` - List - ForEach `List({ space: 4 }) { ForEach( new ItemData().items, (item: Item) => { ListItem() { } } ) }`