Larry Zhu
Larry Zhu
> transform 会影响子节点的position样式 > > 可以考虑在 el-popper 的父节点增加 `position: relative` 这只对挂载到本体的元素有效吧,一般都是挂载到el-popper-container上的
@tolking 试了一下,还是会偏🤡
That is to say, the fitBounds() method only correctly moves the perspective in the Mercator coordinate system, for example, in the wgs84 coordinate system, the more northward the incoming rect...
> Hi @LarryZhu-dev, > > Thank you for using mapbox-gl-js. It's unclear to me what the issue is about. Could you please add more details on the subject? You can...
It will soon be 2024 , any news ?
很多人有这个疑惑,我这里统一说明一下:autofit.js只干了一件事,就是对最外层容器(默认是body)设置了宽高(px)和缩放(scale),你可以先新建一个空白项目来尝试理解。 在拖动浏览器窗口大小时,autofit.js 也会同时设置合适的宽高和缩放值,使body始终充满屏幕,至于body内部的元素该使用什么单位编写,完全取决于实际情况,但是 **不可以使用 rem/vh/vw 等相对单位** 。autofit.js 推荐使用 px 和 % ,当你需要一个固定宽高的元素,比如一个天气图标 image ,你就应该使用 px。当你需要一个需要跟随屏幕大小变化而变化的元素,比如常见大屏左右两侧的盒子,你就需要使用 %。
> tailwindcss 这些也是用不了? 可以用的
据了解,elementUI 等使用的是 [floating-ui](https://github.com/floating-ui/floating-ui) / [popper.js](https://popper.js.org/docs/v2/) 插件 实现的弹出层,但是popper.js在计算弹出元素位置时,没有考虑页面整体缩放偏移的情况,所以在autofit.js的缩放方案中,会出现偏移错位的问题,目前autofit.js有计划使用其他方式解决偏移,但近期还没有好的方案,你可以尝试去[floating-ui](https://github.com/floating-ui/floating-ui)提个issue。
@zhengdechang 目前已知国内主流组件库都不支持autofit.js 但是有一些国外的小众UI库是支持的: Vuestic UI :https://github.com/epicmaxco/vuestic-ui 其实没有一些,目前只发现这一个🤡
@zhengdechang 我这暂时没发现呢