Skip to content

Commit 889635c

Browse files
committed
docs(harmonyos): Update StackLayout flex properties
Update the flex properties of the StackLayout in order to align its items to the start and justify the space between them. This change will improve the layout of the components displayed in the StackLayout.
1 parent 86f4864 commit 889635c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/ArkUiLayoutType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ enum class ArkUiLayoutType(val description: String, val example: String) {
8787
StackLayout(
8888
"层叠布局(StackLayout)用于在屏幕上预留一块区域来显示组件中的元素,提供元素可以重叠的布局。",
8989
"Stack({ alignContent: Alignment.Bottom }) {\n" +
90-
" Flex({ wrap: FlexWrap.Wrap }) {\n" +
90+
" Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.Start }) {\n" +
9191
" ForEach(this.arr, (item) => {\n" +
9292
" Text(item)\n" +
9393
" .width(100)\n" +

0 commit comments

Comments
 (0)