From 9d70ab1c56672b766f83dfdcd263d3293afdf81f Mon Sep 17 00:00:00 2001 From: qkiroc Date: Thu, 16 Mar 2023 19:37:48 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-10220=20=E5=A4=96=E8=A7=82=E6=BA=90?= =?UTF-8?q?=E7=A0=81=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I36dcfaa22c811dda6d970f0c508abdb792daf1fa --- .../scss/style-control/_theme-css-code.scss | 37 ++++++++++++++++++- packages/amis-editor-core/src/store/editor.ts | 2 +- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor-core/scss/style-control/_theme-css-code.scss b/packages/amis-editor-core/scss/style-control/_theme-css-code.scss index aa1d2ea2d..7f7b43a1c 100644 --- a/packages/amis-editor-core/scss/style-control/_theme-css-code.scss +++ b/packages/amis-editor-core/scss/style-control/_theme-css-code.scss @@ -12,7 +12,7 @@ } .ThemeCssCode-editor { height: auto; - width: px2rem(400px); + width: px2rem(460px); padding: px2rem(16px); position: relative; &-title { @@ -32,6 +32,41 @@ &-content { height: px2rem(500px); width: 100%; + &-header { + display: flex; + margin-bottom: px2rem(10px); + border-bottom: 1px solid #e8e9eb; + + &-title { + margin-right: px2rem(30px); + cursor: pointer; + padding-bottom: px2rem(10px); + } + &-title--active { + color: #2468f2; + border-bottom: 2px solid #2468f2; + } + } + &-main { + overflow: auto; + height: px2rem(460px); + } + &-body--hidden { + display: none; + } + &-body { + margin-bottom: px2rem(10px); + &-title { + margin-bottom: px2rem(10px); + margin-left: px2rem(16px); + font-size: 12px; + } + &-editor { + height: 200px; + margin-bottom: px2rem(10px); + border-bottom: 1px solid #e8e9eb; + } + } } } .editorPanel-inner { diff --git a/packages/amis-editor-core/src/store/editor.ts b/packages/amis-editor-core/src/store/editor.ts index 4a152c1b2..1ee87cb1f 100644 --- a/packages/amis-editor-core/src/store/editor.ts +++ b/packages/amis-editor-core/src/store/editor.ts @@ -524,7 +524,7 @@ export const MainStore = types key !== '$$commonSchema') || typeof props === 'function' || // pipeIn 和 pipeOut key.substring(0, 2) === '__' || - // key === 'themeCss' || + key === 'themeCss' || key === 'editorPath' || key === 'editorState') // 样式不需要出现做json中, );