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

[Feature Request] FloatingBubble 浮动气泡能有一个主动设置气泡位置的api么? #13091

Open
alittlesister opened this issue Aug 29, 2024 · 3 comments

Comments

@alittlesister
Copy link

这个功能解决了什么问题?

1、我想从外面就能动态改动气泡的位置,方便我们去设置当出现一些其他的交互的时候,可以去设置气泡的位置
2、我想给气泡加初始化出现时的动效,不好加,因为transform属性冲突

你期望的 API 是什么样子的?

floatRef.value.offset = {x:10,y:400}

@inottn
Copy link
Collaborator

inottn commented Aug 29, 2024

可以通过设置 v-model:offset 的值解决这个问题吗

@alittlesister
Copy link
Author

不行,v-model只能从组件内部响应式,组件外面赋值没有效果

@inottn
Copy link
Collaborator

inottn commented Sep 5, 2024

不行,v-model只能从组件内部响应式,组件外面赋值没有效果

设计上是可以的,如果不行的话,可以提供一下复现代码看看

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