From eb452189eaa32de085e963f4bc2a93fb2eee7e64 Mon Sep 17 00:00:00 2001
From: icssoa <615206459@qq.com>
Date: Mon, 19 Feb 2024 18:22:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E5=9B=BE=E7=9A=84?=
=?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../base/pages/main/components/views.vue | 34 +-
src/modules/base/static/css/index.scss | 13 -
src/modules/demo/views/home/index.vue | 98 ++---
src/modules/design/views/page.vue | 7 +-
src/modules/helper/hooks/ai.ts | 25 --
src/modules/helper/static/index.scss | 9 +-
src/modules/helper/views/ai-code.vue | 369 ++++++++++--------
src/modules/helper/views/plugins/serve.vue | 178 +++++----
src/modules/helper/views/plugins/vue.vue | 129 +++---
src/modules/space/views/list.vue | 2 +-
10 files changed, 443 insertions(+), 421 deletions(-)
diff --git a/src/modules/base/pages/main/components/views.vue b/src/modules/base/pages/main/components/views.vue
index 2bc41d3..81a6860 100644
--- a/src/modules/base/pages/main/components/views.vue
+++ b/src/modules/base/pages/main/components/views.vue
@@ -1,13 +1,11 @@
-
-
-
-
-
-
-
+
+
+
+
+
@@ -17,7 +15,7 @@ import { computed, onMounted, onUnmounted, ref } from "vue";
import { useBase } from "/$/base";
import { useCool } from "/@/cool";
-const { refs, setRefs, mitt } = useCool();
+const { mitt } = useCool();
const { process, app } = useBase();
// 缓存数
@@ -37,27 +35,11 @@ function refresh() {
key.value += 1;
}
-// 滚动到
-function scrollTo({ el, top }: { el?: string; top?: number }) {
- const scrollbar = refs.scrollbar.wrapRef;
-
- if (el) {
- top = scrollbar.querySelector(el).offsetTop;
- }
-
- scrollbar.scrollTo({
- top,
- behavior: "smooth"
- });
-}
-
onMounted(() => {
- mitt.on("view.scrollTo", scrollTo);
mitt.on("view.refresh", refresh);
});
onUnmounted(() => {
- mitt.off("view.scrollTo");
mitt.off("view.refresh");
});
@@ -72,10 +54,6 @@ onUnmounted(() => {
border-radius: 4px;
position: relative;
- :deep(.el-scrollbar__view) {
- height: 100%;
- }
-
.none-enter-active {
position: absolute;
}
diff --git a/src/modules/base/static/css/index.scss b/src/modules/base/static/css/index.scss
index 6830b75..2c13859 100644
--- a/src/modules/base/static/css/index.scss
+++ b/src/modules/base/static/css/index.scss
@@ -1,16 +1,3 @@
-*::-webkit-scrollbar {
- width: 10px;
- height: 10px;
-}
-
-*::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
-}
-
-*::-webkit-scrollbar-track {
- background: transparent;
-}
-
#app {
height: 100vh;
width: 100vw;
diff --git a/src/modules/demo/views/home/index.vue b/src/modules/demo/views/home/index.vue
index 8fee75f..1a3a9f2 100644
--- a/src/modules/demo/views/home/index.vue
+++ b/src/modules/demo/views/home/index.vue
@@ -1,54 +1,56 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+