From e4e8c19f78d6960878bfbcebd4d9b2fd9f562c8a Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 15 Sep 2022 10:27:29 +0800 Subject: [PATCH] Update doc (9358) Signed-off-by: ester.zhou --- .../reference/arkui-ts/ts-container-scroll.md | 2 +- .../reference/arkui-ts/ts-universal-attributes-size.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-container-scroll.md b/en/application-dev/reference/arkui-ts/ts-container-scroll.md index 4fd97bc87b..b082b79c02 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-scroll.md +++ b/en/application-dev/reference/arkui-ts/ts-container-scroll.md @@ -34,7 +34,7 @@ Scroll(scroller?: Scroller) | scrollBarWidth | Length | - | Width of the scrollbar.| | edgeEffect | EdgeEffect | EdgeEffect.Spring | Scroll effect. For details, see **EdgeEffect**.| -## ScrollDirection enums +## ScrollDirection | Name | Description | | ---------- | ---------- | | Horizontal | Only horizontal scrolling is supported.| diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-size.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-size.md index 8c9a61dc79..c48f0f7737 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-size.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-size.md @@ -1,10 +1,10 @@ # Size -The size attribute is used to set the width, height, padding, and margin of a component. +The size attributes are used to set the width, height, padding, and margin of a component. > **NOTE** > -> This event is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. +> The APIs of this module are supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. ## Required Permissions @@ -22,7 +22,7 @@ None | size | {
width?: Length,
height?: Length
} | - | Size of the component.| | padding | {
top?: Length,
right?: Length,
bottom?: Length,
left?: Length
} \| Length | 0 | Padding of the component.
When the parameter is of the **Length** type, the four paddings take effect.| | margin | {
top?: Length,
right?: Length,
bottom?: Length,
left?: Length
}
\| Length | 0 | Margin of the component.
When the parameter is of the **Length** type, the four margins take effect.| -| constraintSize | {
minWidth?: Length,
maxWidth?: Length,
minHeight?: Length,
maxHeight?: Length
} | {
minWidth: 0,
maxWidth: Infinity,
minHeight: 0,
maxHeight: Infinity
} | Constraint size of the component, which is used to limit the size range during component layout.| +| constraintSize | {
minWidth?: Length,
maxWidth?: Length,
minHeight?: Length,
maxHeight?: Length
} | {
minWidth: 0,
maxWidth: Infinity,
minHeight: 0,
maxHeight: Infinity
} | Constraint size of the component, which is used to limit the size range during component layout. **constraintSize** takes precedence over **width** and **height**.| | layoutWeight | number \| string | 0 | Weight of the component during layout. When the container size is determined, the layout of the component and sibling components is allocated based on the weight along the main axis. The component size setting is ignored.
> **NOTE**
> This attribute is valid only for the **Row**, **Column**, and **Flex** layouts.| -- GitLab