From 715d577c24ed5098ed43dde52d25cb9d7a9f6889 Mon Sep 17 00:00:00 2001 From: zcdqs Date: Mon, 22 May 2023 14:58:12 +0800 Subject: [PATCH] set flow item's width to 100% Signed-off-by: zcdqs Change-Id: Iab0e88d01d24c512459d2049aa6d6b104c46f4ec --- .../reference/arkui-ts/ts-container-waterflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md index fed88989ee..447deff5f3 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md @@ -264,7 +264,7 @@ struct WaterflowDemo { .layoutWeight(1) } } - .width(this.itemWidthArray[item]) + .width('100%') .height(this.itemHeightArray[item]) .backgroundColor(this.colors[item % 5]) }, item => item) -- GitLab