Skip to content

dialog customize zIndex #4349

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

Open
Tracked by #6736 ...
tiamed opened this issue Jan 13, 2023 · 3 comments · May be fixed by #6802
Open
Tracked by #6736 ...

dialog customize zIndex #4349

tiamed opened this issue Jan 13, 2023 · 3 comments · May be fixed by #6802
Labels
feature request New feature or request

Comments

@tiamed
Copy link
Contributor

tiamed commented Jan 13, 2023

This function solves the problem (这个功能解决的问题)

change zIndex when using useDialog

Expected API (期望的 API)

dialog.warning({
title: 'test',
zIndex: 9999,
});

@github-actions github-actions bot added the feature request New feature or request label Jan 13, 2023
@tiye
Copy link

tiye commented Mar 20, 2023

@amadeus711 I want to customize zindex from outside, like:

import NaiveUIZindexManager from 'vdirs/es/zindexable/z-index-manager';
NaiveUIZindexManager.nextZIndex = 2300;

but it does not look stable. any suggestions?

有时成功有时失败... 查看 node_modules/vdirs 当中除了 es/ 目录还有个 lib/ 目录, 有点怀疑是打包的时候用的不一定是 es/. naive-ui 有没有方案把这个入口暴露一下, 某些情况页面有其他组件占用了一定的 zindex 范围的时候, 还是需要自己指定的.

@machao7
Copy link

machao7 commented Mar 5, 2024

any update?

@mitya33
Copy link

mitya33 commented Sep 30, 2024

Can we please have this? It's not ideal that you can't control Z-index with programmatically-created dialogs, but you can contorl z-index via props on the Modal component.

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

Successfully merging a pull request may close this issue.

4 participants