From edb6596d7f4bca4fa007a4a40bdbb2d46695c696 Mon Sep 17 00:00:00 2001 From: fzh <1399952343@qq.com> Date: Wed, 10 Jan 2024 19:42:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9modal,drawer=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/util/app-drawer/app-drawer-component.scss | 2 ++ src/util/app-modal/app-modal-component.scss | 2 ++ 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 393a27f3..e41784e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - 操作栏样式调整去除左右间距 - 工作流启动时获取流程版本,补充传递 srfwftag 标识 +- 修改modal,drawer组件背景色 ## [0.5.1] - 2024-01-07 diff --git a/src/util/app-drawer/app-drawer-component.scss b/src/util/app-drawer/app-drawer-component.scss index e46168c3..602d901f 100644 --- a/src/util/app-drawer/app-drawer-component.scss +++ b/src/util/app-drawer/app-drawer-component.scss @@ -1,12 +1,14 @@ /* 抽屉 start */ $drawer: ( 'z-index': getCssVar('z-index', 'drawer'), + 'background-color': #{getCssVar(color, bg, 1)}, ); /* 抽屉 end */ @include b(drawer) { @include set-component-css-var('drawer', $drawer); + background-color: getCssVar(drawer, 'background-color'); .el-drawer__header{ position: absolute; diff --git a/src/util/app-modal/app-modal-component.scss b/src/util/app-modal/app-modal-component.scss index f2dc643a..4be38d07 100644 --- a/src/util/app-modal/app-modal-component.scss +++ b/src/util/app-modal/app-modal-component.scss @@ -1,6 +1,7 @@ /* 模态 start */ $modal: ( 'z-index': getCssVar('z-index', 'modal'), + 'background-color': #{getCssVar(color, bg, 1)}, ); /* 模态 end */ @@ -18,6 +19,7 @@ $modal: ( } .el-dialog__body { + background-color: getCssVar(modal, 'background-color'); height: 100%; padding: 0; } -- Gitee