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

[Bug Report] 浮动面板没有拖动效果 #13284

Open
lammyself opened this issue Dec 25, 2024 · 1 comment
Open

[Bug Report] 浮动面板没有拖动效果 #13284

lammyself opened this issue Dec 25, 2024 · 1 comment

Comments

@lammyself
Copy link

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-forked-8g9ff9

Vant 版本

4.8.1

描述一下你遇到的问题。

浮动面板传参anchors 为某些值时, 拖拽时没有拖拽效果(面板不会跟随手指移动)。
例如 :anchors="[100, 200, 500]"
iShot_2024-12-25_16 52 51

重现步骤

拖拽面板,可以看到是从一个锚点直接到另一个锚点。没有中间过渡效果

设备/浏览器

No response

@inottn
Copy link
Collaborator

inottn commented Dec 25, 2024

不要在模版中直接使用类似 :anchors="[xxx]" 的写法,它可能导致每次渲染 anchors 的引用发生改变,把 anchors 作为一个数据定义在 setup 中试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants