Giter Site home page Giter Site logo

Comments (5)

dwqs avatar dwqs commented on June 6, 2024

z-index 的值是 element-ui 通过 js 动态写入的 这个是 element-ui 在多层嵌套中自身的 bug 一个解决方式是 在你打开 dialog 的时候 动态将 v-modal 的 z-index 设置在 2000 以内

from vue-area-linkage.

imageslr avatar imageslr commented on June 6, 2024

嗯,但是如果在dialog中使用原生el-select就不会被覆盖,而用area-select就会被覆盖。后者不也是给el-select传递数组吗?

from vue-area-linkage.

dwqs avatar dwqs commented on June 6, 2024

我引入 element 是按需引入的 不是全量引入 所以会有 z-index 覆盖的问题 这个我在项目中有碰到过 解决方式就是通过 js 再将 v-modal 的 z-index 设置在 2000 以内。 这个之前有人给 element 提过 Issue 不过貌似不了了之了。

area-select 传给 el-select 的是数组

from vue-area-linkage.

dwqs avatar dwqs commented on June 6, 2024

通过 js 再将 v-modal 的 z-index 设置在 2000 以内时 需要设置个定时器去拿 v-modal 元素, 因为 dialog 有过渡动画 在打开 dialog 立即去拿 v-modal 可能会获取不到这个 dom 元素

from vue-area-linkage.

imageslr avatar imageslr commented on June 6, 2024

嗯好的 这个我可以在dialog的open回调里获取。你说的v-modal是指dialog的实例吧?我没有看到dialog有设置这个属性的方式诶

from vue-area-linkage.

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.