提交 fc332845 编写于 作者: E ester.zhou

Update docs (17191)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 024a1a94
...@@ -54,8 +54,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -54,8 +54,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## TouchType ## TouchType
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------ | ------------------------------ | | ------ | ------------------------------ |
| Down | A finger is pressed. | | Down | A finger is pressed. |
...@@ -65,8 +63,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -65,8 +63,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## MouseButton ## MouseButton
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------- | ---------------- | | ------- | ---------------- |
| Left | Left button on the mouse. | | Left | Left button on the mouse. |
...@@ -78,8 +74,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -78,8 +74,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## MouseAction ## MouseAction
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------- | -------------- | | ------- | -------------- |
| Press | The mouse button is pressed.| | Press | The mouse button is pressed.|
...@@ -109,7 +103,7 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -109,7 +103,7 @@ Since API version 9, this API is supported in ArkTS widgets.
## AnimationStatus ## AnimationStatus
Since API version 9, this API is supported in ArkTS widgets. Since API version 10, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------- | ------------------ | | ------- | ------------------ |
...@@ -120,7 +114,7 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -120,7 +114,7 @@ Since API version 9, this API is supported in ArkTS widgets.
## FillMode ## FillMode
Since API version 9, this API is supported in ArkTS widgets. Since API version 10, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| --------- | ------------------------------------------------------------ | | --------- | ------------------------------------------------------------ |
...@@ -142,8 +136,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -142,8 +136,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## KeyType ## KeyType
Since API version 9, this API is supported in ArkTS widgets.
| Name| Description | | Name| Description |
| ---- | ---------- | | ---- | ---------- |
| Down | The key is pressed.| | Down | The key is pressed.|
...@@ -151,8 +143,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -151,8 +143,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## KeySource ## KeySource
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| -------- | -------------------- | | -------- | -------------------- |
| Unknown | Unknown input device. | | Unknown | Unknown input device. |
...@@ -172,8 +162,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -172,8 +162,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## Week ## Week
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| -------- | ---------------------- | | -------- | ---------------------- |
| Mon | Monday. | | Mon | Monday. |
...@@ -242,8 +230,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -242,8 +230,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## RelateType ## RelateType
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------ | ------------------------------- | | ------ | ------------------------------- |
| FILL | The current child component is scaled to fill the parent component. | | FILL | The current child component is scaled to fill the parent component. |
...@@ -307,12 +293,12 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -307,12 +293,12 @@ Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| -------- | ------------------------------------------------------------ | | -------- | ------------------------------------------------------------ |
| Auto | The default configuration of the flex container is used. | | Auto | The default configuration of the container (**\<Flex>** or **\<GridRow>**) is used. |
| Start | The items in the flex container are aligned with the cross-start edge. | | Start | The items in the container (**\<Flex>** or **\<GridRow>**) are aligned with the cross-start edge. |
| Center | The items in the flex container are centered along the cross axis. | | Center | The items in the container (**\<Flex>** or **\<GridRow>**) are centered along the cross axis. |
| End | The items in the flex container are aligned with the cross-end edge. | | End | The items in the container (**\<Flex>** or **\<GridRow>**) are aligned with the cross-end edge. |
| Stretch | The items in the flex container are stretched and padded along the cross axis. If the flex container has the **Wrap** attribute set to **FlexWrap.Wrap** or **FlexWrap.WrapReverse**, the items are stretched to the cross size of the widest element on the current row or column. In other cases, the items with no size set are stretched to the container size.| | Stretch | The items in the container (**\<Flex>** or **\<GridRow>**) are stretched and padded along the cross axis. If the flex container has the **Wrap** attribute set to **FlexWrap.Wrap** or **FlexWrap.WrapReverse**, the items are stretched to the cross size of the widest element on the current row or column. In other cases, the items with no size set are stretched to the container size.|
| Baseline | The items in the flex container are aligned in such a manner that their text baselines are aligned along the cross axis. | | Baseline | The items in the container (**\<Flex>** or **\<GridRow>**) are aligned in such a manner that their text baselines are aligned along the cross axis. |
## FlexDirection ## FlexDirection
...@@ -384,8 +370,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -384,8 +370,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## SharedTransitionEffectType ## SharedTransitionEffectType
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ----------- | ---------- | | ----------- | ---------- |
| Static | The element position remains unchanged on the target page, and transition opacity can be configured. Currently, this effect is only valid in redirecting to the target page.| | Static | The element position remains unchanged on the target page, and transition opacity can be configured. Currently, this effect is only valid in redirecting to the target page.|
...@@ -458,8 +442,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -458,8 +442,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## ResponseType<sup>8+</sup> ## ResponseType<sup>8+</sup>
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ---------- | -------------------------- | | ---------- | -------------------------- |
| LongPress | The menu is displayed when the component is long-pressed. | | LongPress | The menu is displayed when the component is long-pressed. |
...@@ -467,8 +449,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -467,8 +449,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## HoverEffect<sup>8+</sup> ## HoverEffect<sup>8+</sup>
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| --------- | ---------------------------- | | --------- | ---------------------------- |
| Auto | Default hover effect.| | Auto | Default hover effect.|
...@@ -478,8 +458,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -478,8 +458,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## Placement<sup>8+</sup> ## Placement<sup>8+</sup>
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ------------- | ------------------------------------------------------------ | | ------------- | ------------------------------------------------------------ |
| Left | The popup is on the left of the component, vertically aligned with the component on the left. | | Left | The popup is on the left of the component, vertically aligned with the component on the left. |
...@@ -507,8 +485,6 @@ Since API version 9, this API is supported in ArkTS widgets. ...@@ -507,8 +485,6 @@ Since API version 9, this API is supported in ArkTS widgets.
## HitTestMode<sup>9+</sup> ## HitTestMode<sup>9+</sup>
Since API version 9, this API is supported in ArkTS widgets.
| Name | Description | | Name | Description |
| ----------- | -------------------- | | ----------- | -------------------- |
| Default | Both the node and its child node respond to the hit test of a touch event, but its sibling node is blocked from the hit test. | | Default | Both the node and its child node respond to the hit test of a touch event, but its sibling node is blocked from the hit test. |
......
...@@ -130,7 +130,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the ...@@ -130,7 +130,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the
| Name | Type | Description | | Name | Type | Description |
| ----------------------- | ----------------------------------- | ------------------------------------------- | | ----------------------- | ----------------------------------- | ------------------------------------------- |
| alignItems<sup>10+</sup> | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the **\<GridCol>** cross axis.<br>Default value: **ItemAlign.Start**<br>**NOTE**<br>The alignment mode of the **\<GridCol>** component can also be set using **alignSelf([ItemAlign](ts-appendix-enums.md#itemalign))**. If both of the preceding methods are used, the setting of **alignSelf(ItemAlign)** prevails.<br>Since API version 10, this API is supported in ArkTS widgets.| | alignItems<sup>10+</sup> | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the **\<GridCol>** cross axis.<br>Default value: **ItemAlign.Start**<br>**NOTE**<br>In **ItemAlign**, only the enumerated values **Start**, **Center**, **End**, and **Stretch** are supported.<br>The alignment mode of the **\<GridCol>** component can also be set using **alignSelf([ItemAlign](ts-appendix-enums.md#itemalign))**. If both of the preceding methods are used, the setting of **alignSelf(ItemAlign)** prevails.<br>Since API version 10, this API is supported in ArkTS widgets.|
## Events ## Events
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
> **NOTE** > **NOTE**
> - The APIs of this module are 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.
> >
> - The flex layout is valid only when the parent component is a **\<Flex>**, **\<Column>**, or **\<Row>** component. > - The flex layout is valid only when the parent component is a **\<Flex>**, **\<Column>**, **\<Row>**, or **\<GridRow>** component.
## Attributes ## Attributes
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
| flexBasis | number \| string | Base size of the component in the main axis of the parent container.<br>Default value: **'auto'** (indicating that the base size of the component in the main axis is the original size of the component)<br>This attribute cannot be set in percentage.<br>Since API version 9, this API is supported in ArkTS widgets.| | flexBasis | number \| string | Base size of the component in the main axis of the parent container.<br>Default value: **'auto'** (indicating that the base size of the component in the main axis is the original size of the component)<br>This attribute cannot be set in percentage.<br>Since API version 9, this API is supported in ArkTS widgets.|
| flexGrow | number | Percentage of the parent container's remaining space that is allocated to the component.<br>Default value: **0**<br>Since API version 9, this API is supported in ArkTS widgets.| | flexGrow | number | Percentage of the parent container's remaining space that is allocated to the component.<br>Default value: **0**<br>Since API version 9, this API is supported in ArkTS widgets.|
| flexShrink | number | Percentage of the parent container's shrink size that is allocated to the component.<br>When the parent container is **\<Row>** or **\<Column>**, the default value is **0**.<br> When the parent container is **\<Flex>**, the default value is **1**.<br>Since API version 9, this API is supported in ArkTS widgets.| | flexShrink | number | Percentage of the parent container's shrink size that is allocated to the component.<br>When the parent container is **\<Row>** or **\<Column>**, the default value is **0**.<br> When the parent container is **\<Flex>**, the default value is **1**.<br>Since API version 9, this API is supported in ArkTS widgets.|
| alignSelf | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the child components along the cross axis of the parent container. The setting overwrites the **alignItems** setting of the parent container.<br>Default value: **ItemAlign.Auto**<br>Since API version 9, this API is supported in ArkTS widgets.| | alignSelf | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the child components along the cross axis of the parent container. The setting overwrites the **alignItems** setting of the parent container (**\<Flex>**, **\<Column>**, **\<Row>**, or **\<GridRow>**).<br>**\<GridCol>** can have the **alignsSelf** attribute bound to change its own layout along the cross axis.<br>Default value: **ItemAlign.Auto**<br>Since API version 9, this API is supported in ArkTS widgets.|
## Example ## Example
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册