From 51f208d4e41aaf130821e9f33154022c2bb285a3 Mon Sep 17 00:00:00 2001 From: xiexiyun Date: Tue, 10 May 2022 10:09:19 +0800 Subject: [PATCH] fixed 5d82f5e from https://gitee.com/xiexiyun/docs/pulls/3828 change sliding panel example code Signed-off-by: xiexiyun --- .../application-dev/reference/arkui-ts/ts-container-panel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md index 809ef947ec..b92c822e71 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md @@ -86,8 +86,8 @@ struct PanelExample { .type(PanelType.Foldable).mode(PanelMode.Half) .dragBar(true) // 默认开启 .halfHeight(500) // 默认一半 - .onChange((value: any) => { - console.info(`width:${value.width},height:${value.height},mode:${value.mode}`) + .onChange((width: number, height: number, mode: PanelMode) => { + console.info(`width:${width},height:${height},mode:${mode}`) }) }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 }) } -- GitLab