From d6b19cc2305b7752ed1b63c7b193805b0cb1898b Mon Sep 17 00:00:00 2001
From: Miao_Spring <539943419@qq.com>
Date: Tue, 14 Jan 2025 04:38:47 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E6=8A=98=E5=8F=A0=E9=9D=A2=E6=9D=BF=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/miaoCollapse.vue | 94 +++++++++++++++++++++++++++++++++++++
pages/index.vue | 24 ++++++----
2 files changed, 108 insertions(+), 10 deletions(-)
create mode 100644 components/miaoCollapse.vue
diff --git a/components/miaoCollapse.vue b/components/miaoCollapse.vue
new file mode 100644
index 0000000..e12ea53
--- /dev/null
+++ b/components/miaoCollapse.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index d705b36..2b5aa07 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -16,17 +16,19 @@
-
-
-
{{ cItem.name }}
-
{{ cItem.description }}
-
-
-
{{ link.name }}
-
{{ link.name }}
+
+
+
+
{{ cItem.name }}
+
{{ cItem.description }}
+
+
+
{{ link.name }}
+
{{ link.name }}
+
-
+
@@ -38,6 +40,7 @@ import miaoDividerLeft from '~/components/miaoDivider-left.vue';
// @ts-ignore
import ChevronDown from "~/components/icons/chevronDown.vue";
import linkIcon from '~/components/icons/link.vue';
+import miaoCollapse from '~/components/miaoCollapse.vue';
type PageContent = {
subTitle: string,
@@ -239,6 +242,7 @@ const switchItemShow = (item: PageContent) => {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
justify-content: center;
+ // align-items: end;
gap: 20px;
// overflow: hidden;
transition: max-height 0.25s ease, opacity 0.25s ease;
@@ -247,7 +251,7 @@ const switchItemShow = (item: PageContent) => {
// margin: 0 -20px;
&-hide {
max-height: 0;
- opacity: 0;
+ // opacity: 0;
}
}