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

!24049 问题修改同步OHOS

Merge pull request !24049 from LiAn/OpenHarmony-4.0-Beta2
...@@ -188,7 +188,7 @@ struct ParentComponent { ...@@ -188,7 +188,7 @@ struct ParentComponent {
### 父组件\@State到子组件\@Prop简单数据类型同步 ### 父组件\@State到子组件\@Prop简单数据类型同步
以下示例是\@State到子组件\@Prop简单数据同步,父组件ParentComponent的状态变量countDownStartValue初始化子组件CountDownComponent中\@Prop装饰的count,点击“Try again”,count的修改仅保留在CountDownComponent 不会同步给父组件CountDownComponent。 以下示例是\@State到子组件\@Prop简单数据同步,父组件ParentComponent的状态变量countDownStartValue初始化子组件CountDownComponent中\@Prop装饰的count,点击“Try again”,count的修改仅保留在CountDownComponent 不会同步给父组件ParentComponent。
ParentComponent的状态变量countDownStartValue的变化将重置CountDownComponent的count。 ParentComponent的状态变量countDownStartValue的变化将重置CountDownComponent的count。
......
...@@ -43,7 +43,7 @@ ForEach( ...@@ -43,7 +43,7 @@ ForEach(
``` ```
## 开发者的建议 ## 开发建议
- 建议开发者不要假设项构造函数的执行顺序。执行顺序可能不能是数组中项的排列顺序。 - 建议开发者不要假设项构造函数的执行顺序。执行顺序可能不能是数组中项的排列顺序。
......
...@@ -21,7 +21,7 @@ GestureGroup(mode: GestureMode, ...gesture: GestureType[]) ...@@ -21,7 +21,7 @@ GestureGroup(mode: GestureMode, ...gesture: GestureType[])
| 名称 | 描述 | | 名称 | 描述 |
| --------- | ---------------------------------------- | | --------- | ---------------------------------------- |
| Sequence | 顺序识别,按照手势的注册顺序识别手势,直到所有手势识别成功。当有一个手势识别失败时,所有手势识别失败。 | | Sequence | 顺序识别,按照手势的注册顺序识别手势,直到所有手势识别成功。当有一个手势识别失败时,所有手势识别失败。<br>顺序识别手势组仅有最后一个手势可以响应onActionEnd。 |
| Parallel | 并发识别,注册的手势同时识别,直到所有手势识别结束,手势识别互相不影响。 | | Parallel | 并发识别,注册的手势同时识别,直到所有手势识别结束,手势识别互相不影响。 |
| Exclusive | 互斥识别,注册的手势同时识别,若有一个手势识别成功,则结束手势识别。 | | Exclusive | 互斥识别,注册的手势同时识别,若有一个手势识别成功,则结束手势识别。 |
...@@ -67,9 +67,6 @@ struct GestureGroupExample { ...@@ -67,9 +67,6 @@ struct GestureGroupExample {
this.count++ this.count++
} }
console.info('LongPress onAction') console.info('LongPress onAction')
})
.onActionEnd(() => {
console.info('LongPress end')
}), }),
PanGesture() PanGesture()
.onActionStart(() => { .onActionStart(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册