From a577f3e662331c158e83ce5b3ce1e8edc1ddc4a6 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 16 May 2022 01:39:14 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-container-panel.md. Signed-off-by: ester.zhou --- en/application-dev/reference/arkui-ts/ts-container-panel.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-container-panel.md b/en/application-dev/reference/arkui-ts/ts-container-panel.md index 1d66f2c063..4c032b32a8 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-panel.md +++ b/en/application-dev/reference/arkui-ts/ts-container-panel.md @@ -59,7 +59,7 @@ Panel(value:{show:boolean}) | Name | Description | | -------- | -------- | -| onChange(callback: (width: number, height: number, mode: PanelMode) => void) | Triggered when the status of the panel changes. The returned height value is the height of the content area. When the value of **dragbar** is **true**, the height of the panel is the dragbar height plus the height of the content area. | +| onChange(callback: (width: number, height: number, mode: PanelMode) => void) | Triggered when the status of the panel changes. The returned height value is the height of the content area. When the value of **dragbar** is **true**, the height of the panel is the drag bar height plus the height of the content area. | ## Example @@ -87,8 +87,8 @@ struct PanelExample { } } .type(PanelType.Foldable).mode(PanelMode.Half) - .dragBar(true) // The dragbar is enabled by default. - .halfHeight(500) // Half of the height by default + .dragBar(true) // The drag bar is enabled by default. + .halfHeight(500) // The default value is half of the screen height. .onChange((width: number, height: number, mode: PanelMode) => { console.info(`width:${width},height:${height},mode:${mode}`) }) -- GitLab