Skip to content

FloatingPanel 浮动面板自定义锚点功能,设置height不生效,每次都是取anchors[0]的值 #703

@liumang666

Description

@liumang666

Wot Design Uni 版本号

1.3.13

平台

微信小程序

复现Demo地址(如不提供,issue将被直接关闭)

https://github.com/Moonofweisheng/wot-design-uni/blob/master/src/uni_modules/wot-design-uni/components/wd-floating-panel/wd-floating-panel.vue

重现步骤

// 文档例子: https://wot-design-uni.netlify.app/component/floating-panel.html
image

查看源码只是首次接收props.height,并没有实时更新,那这个组件就收height就没啥意义了啊!

期望的结果是什么?

期望页面渲染之后,浮动面板停留在anchors.value[1]的区域(就是屏幕高度的40%)

实际的结果是什么?

页面加载始终都是展示anchors.value[0]的值,或者anchors中最小的值

环境信息

No response

其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions