提交 51f208d4 编写于 作者: X xiexiyun

fixed 5d82f5ea from https://gitee.com/xiexiyun/docs/pulls/3828

change sliding panel example code
Signed-off-by: Nxiexiyun <xiexiyun@huawei.com>
上级 ae29b61d
......@@ -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 })
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册