From 0ff3064acf4b21d0d8f9115e9bcb13bffe3ef75d Mon Sep 17 00:00:00 2001 From: esterzhou Date: Thu, 5 Jan 2023 17:40:58 +0800 Subject: [PATCH] update docs (11437) Signed-off-by: esterzhou --- .../reference/arkui-ts/ts-container-gridcol.md | 12 ++++++------ .../arkui-ts/ts-universal-events-show-hide.md | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-container-gridcol.md b/en/application-dev/reference/arkui-ts/ts-container-gridcol.md index e808617b90..33870e0f04 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-gridcol.md +++ b/en/application-dev/reference/arkui-ts/ts-container-gridcol.md @@ -1,6 +1,6 @@ # GridCol -The **\** component must be used as a child component of the [GridRow](ts-container-gridrow.md) container. +The **\** component must be used as a child component of the **[\](ts-container-gridrow.md)** container. > **NOTE** > @@ -15,11 +15,11 @@ GridCol(option?:{span?: number | GridColColumnOption, offset?: number | GridColC **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ------------------------------------------------------------ | -| span | number \| GridColColumnOption | No | Number of occupied columns. If it is set to **0**, the element is not involved in layout calculation, that is, the element is not rendered.
Default value: **1**| -| offset | number \| GridColColumnOption | No | Number of offset columns relative to the previous child component of the grid
Default value: **0** | -| order | number \| GridColColumnOption | No | Sequence number of the element. Child components of the grid are sorted in ascending order based on their sequence numbers.
Default value: **0**| +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------------------------- | ---- | ------------------------------------------------------------ | +| span | number \| [GridColColumnOption](#gridcolcolumnoption) | No | Number of occupied columns. If it is set to **0**, the element is not involved in layout calculation, that is, the element is not rendered.
Default value: **1**| +| offset | number \| [GridColColumnOption](#gridcolcolumnoption) | No | Number of offset columns relative to the previous child component of the grid
Default value: **0** | +| order | number \| [GridColColumnOption](#gridcolcolumnoption) | No | Sequence number of the element. Child components of the grid are sorted in ascending order based on their sequence numbers.
Default value: **0**| ## Attributes diff --git a/en/application-dev/reference/arkui-ts/ts-universal-events-show-hide.md b/en/application-dev/reference/arkui-ts/ts-universal-events-show-hide.md index 6230df0000..7b1db0758f 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-events-show-hide.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-events-show-hide.md @@ -12,14 +12,14 @@ The show/hide event is triggered when a component is mounted or unmounted from t | Name | Bubbling Supported| Description | | ------------------------------------------------ | -------- | -------------------------- | | onAppear(event: () => void) | No | Triggered when the component is displayed.| -| onDisappear(event: () => void) | No | Triggered when the component is hidden. | +| onDisAppear(event: () => void) | No | Triggered when the component is hidden.| ## Example ```ts // xxx.ets -import prompt from '@ohos.prompt' +import promptAction from '@ohos.promptAction' @Entry @Component @@ -38,14 +38,14 @@ struct AppearExample { Text(this.myText).fontSize(26).fontWeight(FontWeight.Bold) .onAppear(() => { this.changeAppear = 'Hide Text' - prompt.showToast({ + promptAction.showToast({ message: 'The text is shown', duration: 2000 }) }) .onDisAppear(() => { this.changeAppear = 'Show Text' - prompt.showToast({ + promptAction.showToast({ message: 'The text is hidden', duration: 2000 }) -- GitLab