From af907932fbe420f45f8532de88da8ade71e4bd6b Mon Sep 17 00:00:00 2001 From: zclzone Date: Sun, 16 Apr 2023 21:41:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96ScrollX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 12 ++++++++++++ src/components/common/ScrollX.vue | 11 +++++------ src/main.js | 2 ++ 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 623864e..64e7583 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@vueuse/core": "^9.13.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", + "@zclzone/utils": "^0.0.8", "axios": "^1.3.4", "dayjs": "^1.11.7", "lodash-es": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb29890..27bf04b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ specifiers: '@vueuse/core': ^9.13.0 '@wangeditor/editor': ^5.1.23 '@wangeditor/editor-for-vue': ^5.1.12 + '@zclzone/utils': ^0.0.8 axios: ^1.3.4 chalk: ^5.2.0 commitizen: ^4.3.0 @@ -51,6 +52,7 @@ dependencies: '@vueuse/core': 9.13.0_vue@3.2.47 '@wangeditor/editor': 5.1.23 '@wangeditor/editor-for-vue': 5.1.12_77ywgcaevzgjoxs6yixvgo4fve + '@zclzone/utils': 0.0.8 axios: 1.3.4 dayjs: 1.11.7 lodash-es: 4.17.21 @@ -1369,6 +1371,12 @@ packages: snabbdom: 3.5.1 dev: false + /@zclzone/utils/0.0.8: + resolution: {integrity: sha512-juDnfLV7YIpuNsfRhBcK3BufVX1rl0kLHZwOEE61I7nSmL1aze2x498QU8a4AjjnAd3389qBzGsNxkrp8j+6Ag==} + dependencies: + crypto-js: 4.1.1 + dev: false + /JSONStream/1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -2117,6 +2125,10 @@ packages: which: 2.0.2 dev: true + /crypto-js/4.1.1: + resolution: {integrity: sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==} + dev: false + /css-render/0.15.11: resolution: {integrity: sha512-hnLrHPUndVUTF5nmNPRey6hpixK02IPUGdEsm2xRjvJuewToyrVFx9Nmai8rgfVzhTFo5SJVh2PHAtzaIV8JKw==} dependencies: diff --git a/src/components/common/ScrollX.vue b/src/components/common/ScrollX.vue index 1d1411f..8050f71 100644 --- a/src/components/common/ScrollX.vue +++ b/src/components/common/ScrollX.vue @@ -11,6 +11,7 @@