Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
liumang666 opened this issue Nov 8, 2024 · 1 comment · Fixed by #725
Labels

Comments

@liumang666
Copy link

liumang666 commented Nov 8, 2024

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

Copy link

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants