From c860a014162166e8ca14eaf259e33c058ebdc3e1 Mon Sep 17 00:00:00 2001 From: osiris Date: Tue, 14 May 2024 15:05:57 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E6=90=9C=E7=B4=A2=E6=97=B6?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=A0=B9=E6=8D=AE=E6=8F=8F=E8=BF=B0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=92=8C=E4=B8=80=E4=BA=9B=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 3 +- mock/tools.ts | 3 +- package.json | 1 + pnpm-lock.yaml | 47 +++++++++++++++++++++++ src/components/Home/About.vue | 6 +-- src/components/Home/Home.vue | 2 +- src/components/Layout/Floor/Floor.vue | 2 +- src/components/Layout/Header/Header.vue | 51 ++++++++++++++++++------- src/components/Layout/Left/Left.vue | 10 +++-- 9 files changed, 101 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 0a5a867..37e52b5 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,8 @@ })(); - + + diff --git a/mock/tools.ts b/mock/tools.ts index f6af2fb..36d77d5 100644 --- a/mock/tools.ts +++ b/mock/tools.ts @@ -381,7 +381,8 @@ export default [ if (title != '') { list = list.filter(item => { let tmpValue = item.title.toLowerCase() - return tmpValue.indexOf(title.toLowerCase()) !== -1; + let tmpDesc = item.desc.toLowerCase() + return tmpValue.indexOf(title.toLowerCase()) !== -1 || tmpDesc.indexOf(title.toLowerCase()) !== -1; }); } //分类筛选 diff --git a/package.json b/package.json index aa7bf61..9ffa0fd 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@element-plus/icons-vue": "^2.1.0", "@kangc/v-md-editor": "^2.3.18", "@toast-ui/editor": "^3.2.2", + "@vueuse/core": "^10.9.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", "axios": "^1.6.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6bc437a..e724003 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,9 @@ dependencies: '@toast-ui/editor': specifier: ^3.2.2 version: 3.2.2 + '@vueuse/core': + specifier: ^10.9.0 + version: 10.9.0(vue@3.3.10) '@wangeditor/editor': specifier: ^5.1.23 version: 5.1.23 @@ -905,6 +908,10 @@ packages: resolution: {integrity: sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==} dev: false + /@types/web-bluetooth@0.0.20: + resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} + dev: false + /@types/yauzl@2.10.3: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true @@ -1127,6 +1134,18 @@ packages: - supports-color dev: false + /@vueuse/core@10.9.0(vue@3.3.10): + resolution: {integrity: sha512-/1vjTol8SXnx6xewDEKfS0Ra//ncg4Hb0DaZiwKf7drgfMsKFExQ+FnnENcN6efPen+1kIzhLQoGSy0eDUVOMg==} + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.9.0 + '@vueuse/shared': 10.9.0(vue@3.3.10) + vue-demi: 0.14.7(vue@3.3.10) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: false + /@vueuse/core@9.13.0(vue@3.3.10): resolution: {integrity: sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==} dependencies: @@ -1139,10 +1158,23 @@ packages: - vue dev: false + /@vueuse/metadata@10.9.0: + resolution: {integrity: sha512-iddNbg3yZM0X7qFY2sAotomgdHK7YJ6sKUvQqbvwnf7TmaVPxS4EJydcNsVejNdS8iWCtDk+fYXr7E32nyTnGA==} + dev: false + /@vueuse/metadata@9.13.0: resolution: {integrity: sha512-gdU7TKNAUVlXXLbaF+ZCfte8BjRJQWPCa2J55+7/h+yDtzw3vOoGQDRXzI6pyKyo6bXFT5/QoPE4hAknExjRLQ==} dev: false + /@vueuse/shared@10.9.0(vue@3.3.10): + resolution: {integrity: sha512-Uud2IWncmAfJvRaFYzv5OHDli+FbOzxiVEQdLCKQKLyhz94PIyFC3CHcH7EDMwIn8NPtD06+PNbC/PiO0LGLtw==} + dependencies: + vue-demi: 0.14.7(vue@3.3.10) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: false + /@vueuse/shared@9.13.0(vue@3.3.10): resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==} dependencies: @@ -7102,6 +7134,21 @@ packages: dependencies: vue: 3.3.10(typescript@5.3.2) + /vue-demi@0.14.7(vue@3.3.10): + resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + dependencies: + vue: 3.3.10(typescript@5.3.2) + dev: false + /vue-router@4.2.5(vue@3.3.10): resolution: {integrity: sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==} peerDependencies: diff --git a/src/components/Home/About.vue b/src/components/Home/About.vue index 3019e98..69f7ccb 100644 --- a/src/components/Home/About.vue +++ b/src/components/Home/About.vue @@ -2,18 +2,18 @@