提交 5d82f5ea 编写于 作者: X xiexiyun

change sliding panel example code

Signed-off-by: Nxiexiyun <xiexiyun@huawei.com>
上级 9b1326f6
无相关合并请求
......@@ -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.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部