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

!17781 翻译完成 17540:解决新框架waterflow示例demo报jscrash的问题

Merge pull request !17781 from ester.zhou/TR-17540
...@@ -14,6 +14,9 @@ The **\<WaterFlow>** component is a container that consists of cells formed by r ...@@ -14,6 +14,9 @@ The **\<WaterFlow>** component is a container that consists of cells formed by r
The [\<FlowItem>](ts-container-flowitem.md) child component is supported. The [\<FlowItem>](ts-container-flowitem.md) child component is supported.
> **NOTE**
>
> When the **visibility** attribute of a child component in **\<WaterFlow >** is set to **None**, the child component is not displayed, but still takes up cells.
## APIs ## APIs
...@@ -250,7 +253,7 @@ struct WaterflowDemo { ...@@ -250,7 +253,7 @@ struct WaterflowDemo {
build() { build() {
Column({ space: 2 }) { Column({ space: 2 }) {
WaterFlow({ footer: this.itemFoot, scroller: this.scroller }) { WaterFlow({ footer: this.itemFoot.bind(this), scroller: this.scroller }) {
LazyForEach(this.datasource, (item: number) => { LazyForEach(this.datasource, (item: number) => {
FlowItem() { FlowItem() {
Column() { Column() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册