GithubHelp home page GithubHelp logo

Comments (5)

mirari avatar mirari commented on June 18, 2024

最好上个例子看一下。
如果弹框元素在DOM树上不在全屏元素的子节点里,全屏时就会看不到。
比如这个例子:
https://codepen.io/mirari/pen/WJQqqR
如果可以显示,那不能操作多半是组件本身的问题,比如这个弹框组件还有一个不可见的全屏遮罩div(一般是用来实现点击别处关闭弹框这个效果的)层级比你设置的弹框层级更高。

from vue-fullscreen.

szagnesc avatar szagnesc commented on June 18, 2024

嗯。我用的iview的modal弹框组件。它就是在dom树上而不是在子节点里面的。这个弹框是有一个遮罩层,可以点击别处关闭弹框,遮罩层的层级和我的弹框内容是同层级的。不过它现在就是能显示出来弹框,但是又没办法操作弹框。

from vue-fullscreen.

szagnesc avatar szagnesc commented on June 18, 2024

我不知道要怎么上例子 :( 不过我的功能是将一个表格全屏,表格有个工具栏是查看和编辑功能,点击查看和编辑出来弹框。现在全屏之后点击查看,我仍然能操作那个表格,却无法操作弹出来的内容。

from vue-fullscreen.

szagnesc avatar szagnesc commented on June 18, 2024

谢谢,这个问题已经解决了。我把modal放到了body外面就好了

from vue-fullscreen.

mirari avatar mirari commented on June 18, 2024

https://codepen.io/mirari/pen/XqZrbE
参考以上例子:
iview对话框组件有个transfer属性,作用是组件初始化后是否移动到body下,默认是开启的。移动到body下的弹框自然会跑到fullscreen组件以外,就无法被看到了。
你需要把这个transfer置为false,注意iview没有对这个参数实现响应,只能在初始化前定义一次,之后修改无效。

from vue-fullscreen.

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.