弹框遮罩样式移到全局作用域

scoped 块里的 ::v-deep .v-modal 打不到 body 层的遮罩,改在 global.scss 用全局选择器。
This commit is contained in:
hrz 2026-10-06 22:06:31 +08:00
parent 81883240f6
commit c14fe17741
2 changed files with 7 additions and 6 deletions

View file

@ -163,12 +163,7 @@ export default {
padding: 20px;
}
/* PopupManager 把 .v-modal 挂到 body 末尾,用后代选择器穿透命中 */
::v-deep .v-modal {
background: rgba(15, 23, 42, 0.55) !important;
backdrop-filter: blur(2px);
}
/* .v-modal 样式由 global.scss 全局定义 */
::v-deep .el-dialog__header {
padding: 16px 20px 12px;
background: linear-gradient(135deg, #e2eeff, #edeafe);

View file

@ -48,4 +48,10 @@ select:-webkit-autofill:focus {
// 大弹框宽度档位(表格档使用)
:root {
--dialog-table-max: 1280px;
}
/* 全局弹框遮罩:脱离 dialog wrapper 层级,需全局生效 */
.v-modal {
background: rgba(15, 23, 42, 0.55) !important;
backdrop-filter: blur(2px);
}