From 59eaf2d7a754790cc64e5643861377cea94cf527 Mon Sep 17 00:00:00 2001 From: personal82555 Date: Tue, 13 Oct 2026 17:42:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E9=BB=98=E8=AE=A4=E6=8A=98=E5=8F=A0+?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=BE=BD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 全部工具默认折叠(只显标题行), 点标题展开/收起带动画 - 标题左侧箭头(展开旋转90°), 右侧绿色徽章显示功能总数(108) - hover高亮, aria-expanded 验证: 默认折叠/徽章108/点击展开108卡/再点收起 ✓ CHANGELOG记录 --- CHANGELOG.md | 7 ++++ src/pages/Home.page.vue | 72 ++++++++++++++++++++++++++++++++++++++--- 2 files changed, 74 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aff7ff..90bfe00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. See [standa ## Version 2026.10.12-it-tools-pro +### 🗂️ 首页「全部工具」默认折叠 + 数量徽章 +- 首页「全部工具」区块改为**默认折叠**(只显示标题行,点标题展开/收起,带展开动画) +- 标题行左侧箭头(展开时旋转 90°),右侧绿色圆角徽章显示**功能总数**(当前 108) +- 标题行 hover 高亮,点击切换,带 `aria-expanded` +- 验证:默认 grid 不存在(折叠)、徽章显示 108、点击展开 108 卡片+箭头转、再点收起 ✓ + + ### 🤖 AI 问答限定只答本站功能 - AI 问答改为只回答与本站功能/工具相关的问题(某功能在哪、怎么用、选哪个、功能区别) - 前端随请求发送**全站工具清单**(按分类、实时随工具增减),后端嵌入系统提示划定范围 diff --git a/src/pages/Home.page.vue b/src/pages/Home.page.vue index e25a924..afe226d 100644 --- a/src/pages/Home.page.vue +++ b/src/pages/Home.page.vue @@ -79,6 +79,9 @@ const { t } = useI18n(); const favoriteTools = computed(() => toolStore.favoriteTools); +// 全部工具默认折叠,点击标题展开,右侧显示数量 +const showAllTools = ref(false); + // Update favorite tools order when drag is finished function onUpdateFavoriteTools() { toolStore.updateFavoriteTools(favoriteTools.value); // Update the store with the new order @@ -214,17 +217,76 @@ function onUpdateFavoriteTools() { -

- {{ $t('home.categories.allTools') }} -

-
- +
+
+ + ▶ + {{ $t('home.categories.allTools') }} + + {{ toolStore.tools.length }} +
+ +
+ +
+