From e4f2cdede637911c7de4fce6dbaf7fa6767737d3 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Tue, 24 Sep 2024 15:48:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/surveyTemplate/templateBase.json | 2 +- web/public/imgs/icons/upload.png | Bin 340 -> 0 bytes web/src/common/utils/applySkinConfig.ts | 21 ---------------- .../components/CooperModify/MemberList.vue | 2 +- .../components/CooperModify/MemberSelect.vue | 2 +- .../components/CooperModify/ModifyDialog.vue | 3 +-- .../CooperModify/OperationSelect.vue | 2 +- web/src/management/components/LeftMenu.vue | 2 +- web/src/management/config/skinPresets.js | 4 +-- web/src/management/pages/edit/index.vue | 23 +++++++++++++++--- .../edit/modules/skinModule/CatalogPanel.vue | 4 +-- .../pages/edit/setterConfig/skinConfig.js | 10 ++++---- .../pages/list/components/BaseList.vue | 2 +- .../pages/list/components/SliderBar.vue | 4 +-- .../pages/list/components/SpaceList.vue | 2 +- .../pages/list/components/SpaceModify.vue | 2 +- web/src/management/pages/list/index.vue | 2 +- web/src/management/router/index.ts | 2 +- web/src/management/stores/edit.ts | 2 +- web/src/management/stores/workSpace.ts | 8 ++---- .../management/utils/{types => }/workSpace.ts | 14 +++++------ .../materials/setters/widgets/TabsSetter.vue | 2 +- .../setters/widgets/UploadSingleFile.vue | 4 +-- web/src/render/App.vue | 23 +++++++++++++++--- 24 files changed, 75 insertions(+), 67 deletions(-) delete mode 100644 web/public/imgs/icons/upload.png delete mode 100644 web/src/common/utils/applySkinConfig.ts rename web/src/management/utils/{types => }/workSpace.ts (100%) diff --git a/server/src/modules/survey/template/surveyTemplate/templateBase.json b/server/src/modules/survey/template/surveyTemplate/templateBase.json index 0bfc6543..0a2bc4c4 100644 --- a/server/src/modules/survey/template/surveyTemplate/templateBase.json +++ b/server/src/modules/survey/template/surveyTemplate/templateBase.json @@ -50,7 +50,7 @@ "skinColor": "#4a4c5b", "inputBgColor": "#ffffff", "backgroundConf": { - "color": "#ffffff", + "color": "#b8dbff", "type": "color", "image": "" }, diff --git a/web/public/imgs/icons/upload.png b/web/public/imgs/icons/upload.png deleted file mode 100644 index 950531ca151cd82f43ed4045af2e14c24a4ac6a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 340 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|Tv8)E(|mmy zw18|52FCVG1{RPKAeI7R1_tH@j10^`nh_+nfC(-uuz(rC1}QWNE&K$e_IbKEhFAzD zCrD%*=s3-2oPI9l@7LL>svh%tzxr2HRsG7($=WEzaOuxy{?l4*|9SEfe0z9y--!Iz zl4#6wm|;iSgmeFSt}kHAXw1lIGiVf55OkP*SmK{y4ZG&Q|MMT3b2Q&@IQ);{snWzL zLTP?;Y_>DDd|Y{?fYI*gjVEjq87D70x3~3ZXMSUnLJyOg@62L$wF6Aa49=0F=h}=u z6;D=Q-0k?I=afNV*I|Z-Ol)oClb4gTe~ HDWM4fQt)pX diff --git a/web/src/common/utils/applySkinConfig.ts b/web/src/common/utils/applySkinConfig.ts deleted file mode 100644 index 1d489d17..00000000 --- a/web/src/common/utils/applySkinConfig.ts +++ /dev/null @@ -1,21 +0,0 @@ -export default function (skinConfig: any) { - const root = document.documentElement - const { themeConf, backgroundConf, contentConf } = skinConfig - - if (themeConf?.color) { - // 设置主题颜色 - root.style.setProperty('--primary-color', themeConf?.color) - } - - // 设置背景 - const { color, type, image } = backgroundConf || {} - root.style.setProperty( - '--primary-background', - type === 'image' ? `url(${image}) no-repeat center / cover` : color - ) - - if (contentConf?.opacity.toString()) { - // 设置全局透明度 - root.style.setProperty('--opacity', `${contentConf.opacity / 100}`) - } -} diff --git a/web/src/management/components/CooperModify/MemberList.vue b/web/src/management/components/CooperModify/MemberList.vue index 2a5afa3c..55f4290b 100644 --- a/web/src/management/components/CooperModify/MemberList.vue +++ b/web/src/management/components/CooperModify/MemberList.vue @@ -16,7 +16,7 @@