element-plus / element-plus

🎉 A Vue.js 3 UI Library made by Element team
https://element-plus.org
MIT License
24.57k stars 16.64k forks source link

app.use(ElementPlus, { size: 'small', zIndex: 3000 }); zIndex did not work. #698

Closed NO-MAP closed 3 years ago

NO-MAP commented 3 years ago

code:

app.use(ElementPlus, { size: 'small', zIndex: 3000 });

view: image

and el-message will be covered by el-dialog as follows: e6b7453eb88357f4db181ac21d05f11

it seems like the default value 2000 should be more higher. https://github.com/element-plus/element-plus/blob/5bd50ac16e6ab8d6e5c7db5fc0c557e2f49098a0/packages/utils/popup-manager.ts#L197

jw-foss commented 3 years ago

Will be fixed soon.

jw-foss commented 3 years ago

Would you mind provide me some sample code?

NO-MAP commented 3 years ago

sample:

https://codesandbox.io/s/quiet-rgb-2fv46?fontsize=14&hidenavigation=1&theme=dark

when i use mutilple dialogs, the last dialog's index will be higher than message's.