From 0636ac4716f3472da53c56c3697160ff9e5c3f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sat, 11 Jun 2022 20:17:30 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=9A=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 8 ++ src/components/AppIcons/index.js | 2 + src/components/Common/ScrollX.vue | 145 ++++++++++++++++++++++++ src/layout/components/sidebar/index.vue | 1 + src/layout/components/tags/index.vue | 126 +++++++------------- src/styles/index.scss | 2 +- 7 files changed, 196 insertions(+), 89 deletions(-) create mode 100644 src/components/Common/ScrollX.vue diff --git a/package.json b/package.json index 36870bd..af7ef8c 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ }, "devDependencies": { "@iconify-json/ant-design": "^1.1.1", + "@iconify-json/ic": "^1.1.2", "@iconify-json/mdi": "^1.1.9", "@iconify-json/simple-icons": "^1.1.7", "@vitejs/plugin-vue": "^1.10.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a64115..9920032 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,6 +2,7 @@ lockfileVersion: 5.4 specifiers: '@iconify-json/ant-design': ^1.1.1 + '@iconify-json/ic': ^1.1.2 '@iconify-json/mdi': ^1.1.9 '@iconify-json/simple-icons': ^1.1.7 '@vitejs/plugin-vue': ^1.10.2 @@ -48,6 +49,7 @@ dependencies: devDependencies: '@iconify-json/ant-design': 1.1.1 + '@iconify-json/ic': 1.1.2 '@iconify-json/mdi': 1.1.9 '@iconify-json/simple-icons': 1.1.7 '@vitejs/plugin-vue': 1.10.2_vite@2.9.9 @@ -158,6 +160,12 @@ packages: '@iconify/types': 1.1.0 dev: true + /@iconify-json/ic/1.1.2: + resolution: {integrity: sha512-OXLXNMECrwg1N7HqG9z+p8eF9NleoV5tZvIH/W3ip3HdZsg1VbEWl0RpI9K5VJjT95xVn2n+gcAgLPD5HNAsXg==} + dependencies: + '@iconify/types': 1.1.0 + dev: true + /@iconify-json/mdi/1.1.9: resolution: {integrity: sha512-iZY3d7nLmEhSxLU5YBHIxVVPySqNjj6zYcf448TXGBPp2PyToITCOuLEaub0rQ9jBAPOlupQsuPX9ylBfgIJ1w==} dependencies: diff --git a/src/components/AppIcons/index.js b/src/components/AppIcons/index.js index 58641c4..f2f78d3 100644 --- a/src/components/AppIcons/index.js +++ b/src/components/AppIcons/index.js @@ -20,5 +20,7 @@ export { default as IconExit } from '~icons/mdi/exit-to-app' export { default as IconFullscreen } from '~icons/ant-design/fullscreen-outlined' export { default as IconFullscreenExit } from '~icons/ant-design/fullscreen-exit-outlined' +export { default as IconArrowLeft } from '~icons/ic/baseline-keyboard-arrow-left' +export { default as IconArrowRight } from '~icons/ic/baseline-keyboard-arrow-right' export { default as IconLogo } from './IconLogo.vue' diff --git a/src/components/Common/ScrollX.vue b/src/components/Common/ScrollX.vue new file mode 100644 index 0000000..9ba0807 --- /dev/null +++ b/src/components/Common/ScrollX.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/layout/components/sidebar/index.vue b/src/layout/components/sidebar/index.vue index ffd659d..02c49aa 100644 --- a/src/layout/components/sidebar/index.vue +++ b/src/layout/components/sidebar/index.vue @@ -5,5 +5,6 @@ import SideMenu from './components/SideMenu.vue' diff --git a/src/layout/components/tags/index.vue b/src/layout/components/tags/index.vue index 909d596..ad7a7fa 100644 --- a/src/layout/components/tags/index.vue +++ b/src/layout/components/tags/index.vue @@ -1,27 +1,17 @@