Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于无法顶层显示的问题 #10

Open
Trainerchan opened this issue Jan 17, 2024 · 4 comments
Open

关于无法顶层显示的问题 #10

Trainerchan opened this issue Jan 17, 2024 · 4 comments

Comments

@Trainerchan
Copy link

image
这部分代码,会生成一个div,不带任何样式,再包裹动态生成的model,这样子不会在顶层显示,我elemnt-plus的dialog组件,不是9999的zindex,它都不能顶层显示。
我试过直接添加model,不创建这个外层div,发现还是不行,,还会生成这个div,,,,。
后来我给最外层的div加了position:relative和z-index9999,就可以了,这样子正常显示符合预期。。。。。。
建议这里的改改,大佬,同时readme.md加个中文显示,容易被国内的搜索到

@Trainerchan
Copy link
Author

image
或者在根样式文件里面加上这个就行。

@Trainerchan
Copy link
Author

我放弃了,各种问题,,唉,,大佬不更新,当然没人注意。。。。用过的都各种问题。。。。

@zpfz
Copy link
Owner

zpfz commented Jan 17, 2024

image
这部分代码,会生成一个div,不带任何样式,再包裹动态生成的model,这样子不会在顶层显示,我elemnt-plus的dialog组件,不是9999的zindex,它都不能顶层显示。
我试过直接添加model,不创建这个外层div,发现还是不行,,还会生成这个div,,,,。
后来我给最外层的div加了position:relative和z-index9999,就可以了,这样子正常显示符合预期。。。。。。
建议这里的改改,大佬,同时readme.md加个中文显示,容易被国内的搜索到

好的,这块我晚上调试看看。

@zpfz
Copy link
Owner

zpfz commented Jan 17, 2024

image 这部分代码,会生成一个div,不带任何样式,再包裹动态生成的model,这样子不会在顶层显示,我elemnt-plus的dialog组件,不是9999的zindex,它都不能顶层显示。 我试过直接添加model,不创建这个外层div,发现还是不行,,还会生成这个div,,,,。 后来我给最外层的div加了position:relative和z-index9999,就可以了,这样子正常显示符合预期。。。。。。 建议这里的改改,大佬,同时readme.md加个中文显示,容易被国内的搜索到

你好,这块能否复现一下问题或者加Q群867711329,我了解下情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants