From 62992b2688a97b32545495d1e93bd9c972d18a8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com>
Date: Mon, 15 Jul 2024 18:40:27 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dloading=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E5=9C=B0=E5=9D=80=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/markdown/markdown.config.js | 54 ++--
components/cache-image/cache-image.vue | 363 +++++++++++++------------
2 files changed, 209 insertions(+), 208 deletions(-)
diff --git a/common/markdown/markdown.config.js b/common/markdown/markdown.config.js
index 1d7a41b..db3432f 100644
--- a/common/markdown/markdown.config.js
+++ b/common/markdown/markdown.config.js
@@ -2,14 +2,14 @@
* markdown配置
*/
-import {
- getAppConfigs
-} from '@/config/index.js'
+import {getAppConfigs} from '@/config/index.js'
import HaloTokenConfig from '@/config/token.config.js'
+import utils from '@/utils/index.js'
+
export default {
- domain: HaloTokenConfig.BASE_API,
- tagStyle: {
- table: `
+ domain: HaloTokenConfig.BASE_API,
+ tagStyle: {
+ table: `
table-layout: fixed;
border-collapse:collapse;
margin-bottom: 18px;
@@ -20,17 +20,17 @@ export default {
border: 1px solid #dcdcdc;
border-radius: 4px;
`,
- th: `
+ th: `
padding: 8px;
border-right: 1px solid var(--classE);
border-bottom: 1px solid var(--classE);
`,
- td: `
+ td: `
padding: 8px;
border-right: 1px solid var(--classE);
border-bottom: 1px solid var(--classE);
`,
- blockquote: `
+ blockquote: `
padding: 8px 15px;
color: #606266;
background: #f2f6fc;
@@ -39,62 +39,62 @@ export default {
line-height: 26px;
margin-bottom: 18px;
`,
- ul: 'padding-left: 15px;line-height: 1.85;',
- ol: 'padding-left: 15px;line-height: 1.85;',
- li: 'margin-bottom: 12px;line-height: 1.85;',
- h1: `
+ ul: 'padding-left: 15px;line-height: 1.85;',
+ ol: 'padding-left: 15px;line-height: 1.85;',
+ li: 'margin-bottom: 12px;line-height: 1.85;',
+ h1: `
margin: 30px 0 20px;
color: var(--main);
line-height: 24px;
position: relative;
font-size:1.2em;
`,
- h2: `
+ h2: `
color: var(--main);
line-height: 24px;
position: relative;
margin: 22px 0 16px;
font-size: 1.16em;
`,
- h3: `
+ h3: `
color: var(--main);
line-height: 24px;
position: relative;
margin: 26px 0 18px;
font-size: 1.14em;
`,
- h4: `
+ h4: `
color: var(--main);
line-height: 24px;
margin-bottom: 18px;
position: relative;
font-size: 1.12em;
`,
- h5: `
+ h5: `
color: var(--main);
line-height: 24px;
margin-bottom: 14px;
position: relative;
font-size: 1.1em;
`,
- h6: `
+ h6: `
color: #303133;
line-height: 24px;
margin-bottom: 14px;
position: relative;
font-size: 14px;
`,
- p: `
+ p: `
line-height: 1.65;
margin-bottom: 14px;
font-size: 14px;
`,
- 'code': ` `,
- strong: 'font-weight: 700;color: rgb(248, 57, 41);',
- video: 'width: 100%',
- },
- containStyle: 'font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;padding:12px;font-size: 14px;color: #606266;word-spacing: 0.8px;letter-spacing: 0.8px;border-radius: 6px;background-color:#FFFFFF;',
+ 'code': ` `,
+ strong: 'font-weight: 700;color: rgb(248, 57, 41);',
+ video: 'width: 100%',
+ },
+ containStyle: 'font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;padding:12px;font-size: 14px;color: #606266;word-spacing: 0.8px;letter-spacing: 0.8px;border-radius: 6px;background-color:#FFFFFF;',
- loadingGif: getAppConfigs().imagesConfig.loadingGifUrl,
- emptyGif: getAppConfigs().imagesConfig.loadingEmptyUrl,
-}
\ No newline at end of file
+ loadingGif: utils.checkImageUrl(getAppConfigs().imagesConfig.loadingGifUrl),
+ emptyGif: utils.checkImageUrl(getAppConfigs().imagesConfig.loadingEmptyUrl),
+}
diff --git a/components/cache-image/cache-image.vue b/components/cache-image/cache-image.vue
index 5991bc4..e490bf7 100644
--- a/components/cache-image/cache-image.vue
+++ b/components/cache-image/cache-image.vue
@@ -1,197 +1,198 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+