From 7a2525b31345cb101b337930f79d324df8cb7893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=94=BF=E6=9D=83?= <1978141412@qq.com> Date: Fri, 6 Sep 2024 17:02:19 +0800 Subject: [PATCH 1/4] =?UTF-8?q?style:=20=E8=AE=BE=E8=AE=A1=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=A7=86=E5=9B=BE=E6=B7=BB=E5=8A=A0=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E3=80=81=E6=B7=BB=E5=8A=A0=E8=AE=BE=E8=AE=A1=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=A4=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design-base/src/style/index.scss | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/design-base/src/style/index.scss b/packages/design-base/src/style/index.scss index 654c2cf8..9a64abc2 100644 --- a/packages/design-base/src/style/index.scss +++ b/packages/design-base/src/style/index.scss @@ -3,6 +3,13 @@ .#{bem('design-property-view')} { --el-font-size-base: #{getCssVar('font-size', small)}; + &.#{bem(view)} { + #{getCssVarName(view, bg-color)}: getCssVar(color, bg, 0); + } + .#{bem(view)} { + #{getCssVarName(view, bg-color)}: getCssVar(color, bg, 0); + } + $form-item: ( 'font-size': getCssVar(font-size, small), ); @@ -526,3 +533,27 @@ } } } + +.#{bem('design-view-header')} { + box-shadow: 0 2px 2px 0 getCssVar(color, shadow); + .#{bem(control-captionbar)} { + #{getCssVarName(control-captionbar, font-size)}: getCssVar(font-size, regular); + } + .#{bem(control-captionbar-caption)} { + padding: 0; + + &::before { + display: none; + } + } + .#{bem(control-toolbar)} { + #{getCssVarName(control-toolbar, item-padding)}: getCssVar(spacing, none); + + .el-button { + min-width: 24px; + + --el-button-bg-color: transparent; + --el-button-hover-bg-color: transparent; + } + } +} \ No newline at end of file -- Gitee From 9cb668a9f5e2cb707f20d1166689b8c81d1e49b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=94=BF=E6=9D=83?= <1978141412@qq.com> Date: Fri, 6 Sep 2024 17:02:43 +0800 Subject: [PATCH 2/4] =?UTF-8?q?style:=20=E6=B7=BB=E5=8A=A0=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E8=AE=BE=E8=AE=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/grid-design/src/index.ts | 1 + packages/grid-design/src/style/index.scss | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 packages/grid-design/src/style/index.scss diff --git a/packages/grid-design/src/index.ts b/packages/grid-design/src/index.ts index 11a4ab73..25631b81 100644 --- a/packages/grid-design/src/index.ts +++ b/packages/grid-design/src/index.ts @@ -8,6 +8,7 @@ import { GridDesignViewProvider } from './views'; import Components from './components'; import PanelItems from './panel-items'; import PreviewProviders from './preview-providers'; +import './style/index.scss'; export default { install(app: App) { diff --git a/packages/grid-design/src/style/index.scss b/packages/grid-design/src/style/index.scss new file mode 100644 index 00000000..7997590b --- /dev/null +++ b/packages/grid-design/src/style/index.scss @@ -0,0 +1,4 @@ +.grid-design-content { + border-right: 1px solid getCssVar(color, border); + border-left: 1px solid getCssVar(color, border); +} \ No newline at end of file -- Gitee From 7ec9a77b1d6b5c1cf22234cf4a71720d92e4bd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=94=BF=E6=9D=83?= <1978141412@qq.com> Date: Fri, 6 Sep 2024 19:31:05 +0800 Subject: [PATCH 3/4] =?UTF-8?q?style:=20=E8=AE=BE=E7=BD=AE=E6=9A=97?= =?UTF-8?q?=E8=89=B2=E4=B8=BB=E9=A2=98=E8=AE=BE=E8=AE=A1=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=8C=BA=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../studio-theme/src/theme/studio-dark/tumps.scss | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/studio-theme/src/theme/studio-dark/tumps.scss b/packages/studio-theme/src/theme/studio-dark/tumps.scss index 96af2203..cbcb53f4 100644 --- a/packages/studio-theme/src/theme/studio-dark/tumps.scss +++ b/packages/studio-theme/src/theme/studio-dark/tumps.scss @@ -4,4 +4,16 @@ #{getCssVarName(form-item-container, label-color)}: getCssVar(color, text, 0); #{getCssVarName(form-item-container, label-font-weight)}: bold; } -} \ No newline at end of file +} + +// 暗色主题属性区 +:root.studio_dark { + .#{bem('design-property-view')} { + &.#{bem(view)} { + #{getCssVarName(view, bg-color)}: getCssVar(color, bg, 1); + } + .#{bem(view)} { + #{getCssVarName(view, bg-color)}: getCssVar(color, bg, 1); + } + } + } \ No newline at end of file -- Gitee From 12e436666f3b06935c85c9faafef18656f8eb5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=94=BF=E6=9D=83?= <1978141412@qq.com> Date: Fri, 6 Sep 2024 19:41:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?style:=20=E8=AE=BE=E8=AE=A1=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E5=B7=A5=E5=85=B7=E6=A0=8F=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design-base/src/style/index.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/design-base/src/style/index.scss b/packages/design-base/src/style/index.scss index 9a64abc2..a44d75e1 100644 --- a/packages/design-base/src/style/index.scss +++ b/packages/design-base/src/style/index.scss @@ -553,7 +553,9 @@ min-width: 24px; --el-button-bg-color: transparent; + --el-button-text-color: #{getCssVar(color, primary)}; --el-button-hover-bg-color: transparent; + --el-button-hover-text-color: #{getCssVar(color, primary)}; } } } \ No newline at end of file -- Gitee