LarryZhu-dev / autofit.js

autofit.js 迄今为止最易用的自适应工具
https://larryzhu-dev.github.io/autoLarryPages/autofit.js/
MIT License
1.29k stars 139 forks source link

elementui有关于popper,下拉错位 #55

Open gg-guang opened 5 months ago

LarryZhu-dev commented 5 months ago

据了解,elementUI 等使用的是 floating-ui / popper.js 插件 实现的弹出层,但是popper.js在计算弹出元素位置时,没有考虑页面整体缩放偏移的情况,所以在autofit.js的缩放方案中,会出现偏移错位的问题,目前autofit.js有计划使用其他方式解决偏移,但近期还没有好的方案,你可以尝试去floating-ui提个issue。

zhengdechang commented 2 months ago

哪个ui支持的下拉框和弹框适配这个 @LarryZhu-dev

LarryZhu-dev commented 2 months ago

@zhengdechang 目前已知国内主流组件库都不支持autofit.js 但是有一些国外的小众UI库是支持的: Vuestic UI :https://github.com/epicmaxco/vuestic-ui 其实没有一些,目前只发现这一个🤡

zhengdechang commented 2 months ago

@zhengdechang 目前已知国内主流组件库都不支持autofit.js 但是有一些国外的小众UI库是支持的: Vuestic UI :https://github.com/epicmaxco/vuestic-ui 其实没有一些,目前只发现这一个🤡

有没有react的呢

LarryZhu-dev commented 2 months ago

@zhengdechang 我这暂时没发现呢

zhengdechang commented 2 months ago

antd作为国内比较热门的组件库,能否抽空做一下适配呢,大佬。 现在antd遇到的组件有Popover、dropdown、select下拉

@zhengdechang 我这暂时没发现呢

LarryZhu-dev commented 1 month ago

antd作为国内比较热门的组件库,能否抽空做一下适配呢,大佬。 现在antd遇到的组件有Popover、dropdown、select下拉

@zhengdechang 我这暂时没发现呢

这个我这边解决不了哈,需要antd去做适配呢

TopAlien commented 1 month ago

antd作为国内比较热门的组件库,能否抽空做一下适配呢,大佬。 现在antd遇到的组件有Popover、dropdown、select下拉

@zhengdechang我暂时没有发现呢

getPopupContainer 挂载一下

guosuwei commented 6 days ago

antd作为国内比较热门的组件库,能否抽空做一下适配呢,大佬。 现在antd遇到的组件有Popover、dropdown、select下拉

@zhengdechang我暂时没有发现呢

getPopupContainer 挂载一下

elementUI 有办法处理吗

ezewu commented 1 day ago

目前,有弹出的,就跑错位了,是一个问题