mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
弹框遮罩样式移到全局作用域
scoped 块里的 ::v-deep .v-modal 打不到 body 层的遮罩,改在 global.scss 用全局选择器。
This commit is contained in:
parent
81883240f6
commit
c14fe17741
2 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -49,3 +49,9 @@ 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);
|
||||
}
|
||||
Loading…
Reference in a new issue