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

[新功能需求] Fab 悬浮按钮添加 offset 属性 #811

Open
akinoccc opened this issue Jan 1, 2025 · 0 comments
Open

[新功能需求] Fab 悬浮按钮添加 offset 属性 #811

akinoccc opened this issue Jan 1, 2025 · 0 comments
Labels
feature: need confirm 待确认的新特性

Comments

@akinoccc
Copy link

akinoccc commented Jan 1, 2025

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

相对于基础 position 的设置偏移位置,当前悬浮按钮的默认位置不太符合我的需求,虽然可以通过直接调整style来设置位置,但是终究是不太方便
组件内部的 position 应该是通过计算得来的(考虑的机型的适配),直接调整可能会有一些适配的问题

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

<wd-fab position="left-bottom" offset-x="20" offset-y="20" />
@akinoccc akinoccc added the feature: need confirm 待确认的新特性 label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

1 participant