Comments (6)
@powershell-js 并不能这么做
from wujie.
这应该是属于element自己的问题,可以查找一下dom元素的css就知道问题了。
尝试添加css,我是改的Plus版本,根据实际情况修改:
div[id^="el-popper-container-"]{
position: relative;
}
from wujie.
将位置从固定改成绝对会导致有滚动条的时候定位异常的
在子应用里每个弹框都加一个popper-append-to-body为false就好了,可以全局替换
from wujie.
谢谢你给了我思路 我是这样解决的 在子应用里加上 body{position:relative;} .el-popper,.el-picker-panel{position:absolute!important;} 目前来看是没有问题的
from wujie.
将 position 从 fixed 改成 absolute 会导致 有滚动条的时候 定位异常的
from wujie.
小老弟,我也被这个困扰了很久,这个问题我已经有了完美解决办法了,且子应用改造为0。
我这个帖子内回复了使用最小成本实现elemet-ui在popper.js内通过代替源码方式实现弹框偏移解决方案,你可以看看。
#682 (comment)
from wujie.
Related Issues (20)
- OffScreenCanvas无法使用自定义字体,Canvas和HTML可以应用自定义字体。 HOT 2
- 无界子应用集成@tiptap富文本,第二次打开子应用时,中文输入法输入'@',会连续出现两个(@@),window.getSelection()永远为None HOT 1
- 3层嵌套的情况下,不同UI框架,字体图标不显示问题 HOT 1
- ios中子应用白屏,没有报错,看现象子应用中对应的js文件没加载,安卓正常 HOT 3
- jquery开发的项目,集成到无界时,js和css文件资源加载自动被注释,导致页面错乱 HOT 1
- 路由后退无反应问题 HOT 6
- 子系统的静态资源无法加载 HOT 1
- 官方可否写一个集成jQuery那种老的项目的demo
- 官网卡死, 100%复现
- 我希望配置化无界子应用,不知道子应用路由是hash模式还是history模式, WujieVue中怎么判断是否要 /#/
- 复用主应用的css样式,子应用不生效问题
- 主子应用都是Angular,子应用在使用MutationObserver用作动画处理时,zone.js中的patchClass的get方法陷入死循环
- 主应用和子应用为用一个工程,子应用偶发白屏 HOT 2
- 子应用在CDN中引入了地图框架Cesium,加载子应用时报错DOMException: Failed to construct 'Worker': Script at 'http://localhost:9081/cdn/cesium/Workers/cesiumWorkerBootstrapper.js' cannot be accessed from origin 'http://localhost:8080'. HOT 1
- WujieReact loading props not work
- 移动端 safari 浏览器 通过手势侧滑返回会闪屏
- 主应用内添加子应用初始化启动浏览器控制台报错
- 子应用 CSS 文件重复加载
- 单例模式下,cssBeforeLoaders在首次加载时生效,切换页面再次回到子应用所在页面,cssBeforeLoaders添加的css代码消失
- 子应用内存增加之后,主应用页面崩溃,报错STATUS_INTEGER_DIVIDE_BY_ZERO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wujie.