From 3bc3cce62a0eb001b138ff61db2603840b038e51 Mon Sep 17 00:00:00 2001 From: Azure <983547216@qq.com> Date: Thu, 18 Jun 2026 10:15:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B8=B8=E6=88=8F=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6+=E5=9F=BA=E7=A1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 8 +- src/assets/style/base.css | 48 +++++ src/components/baseLayouts/GameList.vue | 199 ++++++++++++++++++ .../{User => baseLayouts}/UserBar.vue | 0 src/layouts/BaseLayout.vue | 7 +- src/views/HomeView.vue | 6 - 6 files changed, 258 insertions(+), 10 deletions(-) create mode 100644 src/components/baseLayouts/GameList.vue rename src/components/{User => baseLayouts}/UserBar.vue (100%) delete mode 100644 src/views/HomeView.vue diff --git a/components.d.ts b/components.d.ts index fef4f83..6a2a88a 100644 --- a/components.d.ts +++ b/components.d.ts @@ -22,9 +22,11 @@ declare module 'vue' { ElInput: typeof import('element-plus/es')['ElInput'] ElInputOtp: typeof import('element-plus/es')['ElInputOtp'] ElPopover: typeof import('element-plus/es')['ElPopover'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + GameList: typeof import('./src/components/baseLayouts/GameList.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - UserBar: typeof import('./src/components/User/UserBar.vue')['default'] + UserBar: typeof import('./src/components/baseLayouts/UserBar.vue')['default'] } } @@ -40,7 +42,9 @@ declare global { const ElInput: typeof import('element-plus/es')['ElInput'] const ElInputOtp: typeof import('element-plus/es')['ElInputOtp'] const ElPopover: typeof import('element-plus/es')['ElPopover'] + const ElTooltip: typeof import('element-plus/es')['ElTooltip'] + const GameList: typeof import('./src/components/baseLayouts/GameList.vue')['default'] const RouterLink: typeof import('vue-router')['RouterLink'] const RouterView: typeof import('vue-router')['RouterView'] - const UserBar: typeof import('./src/components/User/UserBar.vue')['default'] + const UserBar: typeof import('./src/components/baseLayouts/UserBar.vue')['default'] } \ No newline at end of file diff --git a/src/assets/style/base.css b/src/assets/style/base.css index 0e2948b..ad83b4c 100644 --- a/src/assets/style/base.css +++ b/src/assets/style/base.css @@ -2,4 +2,52 @@ *::before, *::after { box-sizing: border-box; + margin: 0; + padding: 0; +} + +html, +body { + height: 100%; + width: 100%; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: 1.5; + color: #333; + background-color: #fff; +} + +#app { + height: 100%; +} + +a { + color: inherit; + text-decoration: none; +} + +ul, +ol { + list-style: none; +} + +img { + max-width: 100%; + height: auto; + display: block; +} + +button { + cursor: pointer; + border: none; + background: none; + font: inherit; + color: inherit; +} + +input { + font: inherit; + color: inherit; } diff --git a/src/components/baseLayouts/GameList.vue b/src/components/baseLayouts/GameList.vue new file mode 100644 index 0000000..cb39991 --- /dev/null +++ b/src/components/baseLayouts/GameList.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/components/User/UserBar.vue b/src/components/baseLayouts/UserBar.vue similarity index 100% rename from src/components/User/UserBar.vue rename to src/components/baseLayouts/UserBar.vue diff --git a/src/layouts/BaseLayout.vue b/src/layouts/BaseLayout.vue index 44401bf..ffe8e9e 100644 --- a/src/layouts/BaseLayout.vue +++ b/src/layouts/BaseLayout.vue @@ -8,7 +8,9 @@
-
+
+ +
@@ -26,7 +28,8 @@