From 15af66aaaf0cc63e5e7811926f3af91030160e74 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 8 May 2025 07:11:29 +0800 Subject: [PATCH 01/14] =?UTF-8?q?fix=20=E8=B5=84=E6=BA=90=E7=AD=9B?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/torrent/TorrentCardListView.vue | 70 ++++++++++++++++++++++- src/views/torrent/TorrentRowListView.vue | 2 +- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/views/torrent/TorrentCardListView.vue b/src/views/torrent/TorrentCardListView.vue index 07dd3564..3fd499bc 100644 --- a/src/views/torrent/TorrentCardListView.vue +++ b/src/views/torrent/TorrentCardListView.vue @@ -79,6 +79,11 @@ const groupedDataList = ref>() const filterMenuOpen = ref(false) const currentFilter = ref('site') +const currentFilterTitle = computed(() => filterTitles[currentFilter.value]) +const currentFilterOptions = computed(() => { + return filterOptions[currentFilter.value] +}) + // 添加全部筛选菜单相关 const allFilterMenuOpen = ref(false) @@ -522,7 +527,23 @@ function loadMore({ done }: { done: any }) { -
+
+ + + + + {{ t('torrent.allFilters') }} + + + + - + @@ -619,6 +640,51 @@ function loadMore({ done }: { done: any }) { + + + + + + {{ currentFilterTitle }} + + + {{ t('torrent.clear') }} + + + {{ t('torrent.selectAll') }} + + + + + + + {{ option }} + + + + + + + {{ t('torrent.confirm') }} + + + + + diff --git a/src/components/misc/DashboardElement.vue b/src/components/misc/DashboardElement.vue index 44580281..212b2232 100644 --- a/src/components/misc/DashboardElement.vue +++ b/src/components/misc/DashboardElement.vue @@ -1,5 +1,5 @@