From 2ed5b64b182820bee49dee26ec6698a8f31036c3 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Thu, 18 Jul 2024 21:07:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E7=94=A8=E4=BA=8E=E7=A7=BB=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/components.d.ts | 1 - web/src/common/Editor/RichEditor.vue | 42 ++++++--- web/src/common/Editor/utils.js | 31 +++++++ web/src/common/xss.js | 4 +- web/src/management/components/LeftMenu.vue | 9 +- .../pages/analysis/components/DataTable.vue | 24 ++--- .../analysis/components/ImagePreview.vue | 92 +++++++++---------- .../pages/edit/pages/skin/index.vue | 2 +- web/src/management/styles/common.scss | 10 +- 9 files changed, 131 insertions(+), 84 deletions(-) create mode 100644 web/src/common/Editor/utils.js diff --git a/web/components.d.ts b/web/components.d.ts index dcb8b214..95a5e97a 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -17,7 +17,6 @@ declare module 'vue' { ElDialog: typeof import('element-plus/es')['ElDialog'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElIcon: typeof import('element-plus/es')['ElIcon'] ElInput: typeof import('element-plus/es')['ElInput'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElMenu: typeof import('element-plus/es')['ElMenu'] diff --git a/web/src/common/Editor/RichEditor.vue b/web/src/common/Editor/RichEditor.vue index c0357453..65b377bf 100644 --- a/web/src/common/Editor/RichEditor.vue +++ b/web/src/common/Editor/RichEditor.vue @@ -1,20 +1,38 @@ @@ -140,12 +137,14 @@ const onPreviewImage = (e) => { overflow: hidden; /* 超出部分隐藏 */ text-overflow: ellipsis; /* 显示省略号 */ :deep(img) { - height: 23px; - width: auto; + height: 23px !important; + width: auto !important; + object-fit: cover; + margin-left: 5px; } :deep(p) { - display: flex; - align-items: center; + display: flex; + align-items: center; } } } @@ -153,8 +152,3 @@ const onPreviewImage = (e) => { font-size: 13px; } - diff --git a/web/src/management/pages/analysis/components/ImagePreview.vue b/web/src/management/pages/analysis/components/ImagePreview.vue index 5b160210..3e0d99ce 100644 --- a/web/src/management/pages/analysis/components/ImagePreview.vue +++ b/web/src/management/pages/analysis/components/ImagePreview.vue @@ -1,72 +1,70 @@ \ No newline at end of file + diff --git a/web/src/management/pages/edit/pages/skin/index.vue b/web/src/management/pages/edit/pages/skin/index.vue index 24085c1f..8fa30e22 100644 --- a/web/src/management/pages/edit/pages/skin/index.vue +++ b/web/src/management/pages/edit/pages/skin/index.vue @@ -58,7 +58,7 @@ watch( position: absolute; top: 10px; cursor: pointer; - z-index: 9999; + z-index: 999; :deep(.el-radio-button__original-radio + .el-radio-button__inner) { font-size: 12px; height: 28px; diff --git a/web/src/management/styles/common.scss b/web/src/management/styles/common.scss index 1ad8d701..ca8e0e70 100644 --- a/web/src/management/styles/common.scss +++ b/web/src/management/styles/common.scss @@ -1,8 +1,8 @@ // 富文本标题、选项中的预览弹窗的图片宽度 .el-popover { - p { - img { - max-width: 100%; - } + p { + img { + max-width: 100%; } - } \ No newline at end of file + } +}