Giter VIP home page Giter VIP logo

Comments (6)

lp0124 avatar lp0124 commented on July 24, 2024 2

@powershell-js 并不能这么做
image

from wujie.

SericXu avatar SericXu commented on July 24, 2024 1

这应该是属于element自己的问题,可以查找一下dom元素的css就知道问题了。
尝试添加css,我是改的Plus版本,根据实际情况修改:

div[id^="el-popper-container-"]{
  position: relative;
}

from wujie.

powershell-js avatar powershell-js commented on July 24, 2024 1

将位置从固定改成绝对会导致有滚动条的时候定位异常的

1662369293040
1662369320622
在子应用里每个弹框都加一个popper-append-to-body为false就好了,可以全局替换

from wujie.

powershell-js avatar powershell-js commented on July 24, 2024

谢谢你给了我思路 我是这样解决的 在子应用里加上 body{position:relative;} .el-popper,.el-picker-panel{position:absolute!important;} 目前来看是没有问题的

from wujie.

lp0124 avatar lp0124 commented on July 24, 2024

将 position 从 fixed 改成 absolute 会导致 有滚动条的时候 定位异常的

from wujie.

quqingfei avatar quqingfei commented on July 24, 2024

小老弟,我也被这个困扰了很久,这个问题我已经有了完美解决办法了,且子应用改造为0。
我这个帖子内回复了使用最小成本实现elemet-ui在popper.js内通过代替源码方式实现弹框偏移解决方案,你可以看看。
#682 (comment)

from wujie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.