From 114b8faea616a16cdfe8a1e5f6eba0249a081ef3 Mon Sep 17 00:00:00 2001 From: yamila Date: Mon, 19 Jun 2023 20:27:14 +0800 Subject: [PATCH] fixed fad5de1 from https://gitee.com/yamila89/docs/pulls/20015 fixed 5a794a9 from https://gitee.com/yamila89/docs/pulls/19908 update Signed-off-by: yamila --- .../application-dev/reference/arkui-ts/ts-container-stack.md | 2 +- .../arkui-ts/ts-universal-attributes-layout-constraints.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-stack.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-stack.md index 271317c99a..806b1b8cc5 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-stack.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-stack.md @@ -30,7 +30,7 @@ Stack(value?: { alignContent?: Alignment }) | 名称 | 参数类型 | 描述 | | ------------ | ------------------------------------------- | ------------------------------------------------------------ | -| alignContent | [Alignment](ts-appendix-enums.md#alignment) | 设置子组件在容器内的对齐方式。
默认值:Alignment.Center
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性与[通用属性align](ts-universal-attributes-location.md)同时设置时,只有align属性生效。 | +| alignContent | [Alignment](ts-appendix-enums.md#alignment) | 设置子组件在容器内的对齐方式。
默认值:Alignment.Center
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性与[通用属性align](ts-universal-attributes-location.md)同时设置时,后设置的属性生效。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md index 7049c13525..334beb7fb8 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md @@ -55,7 +55,7 @@ struct AspectRatioExample { Text(item) .backgroundColor(0xbbb2cb) .fontSize(40) - .height(160) + .width('100%') .aspectRatio(1.5) } }, item => item) @@ -133,4 +133,6 @@ struct DisplayPriorityExample { ``` +横屏显示 + ![zh-cn_image_0000001219662667](figures/zh-cn_image_0000001219662667.gif) -- GitLab