From dca0f1f0c1826b687ac36b46e5833b96b66e1bc4 Mon Sep 17 00:00:00 2001 From: jiangrui Date: Tue, 11 Mar 2025 21:57:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components.d.ts | 18 ++++++++++ frontend/src/components/Home/ResourceCard.vue | 35 +++++++++++++++---- .../src/components/Home/ResourceTable.vue | 10 ++++-- .../src/components/mobile/ResourceCard.vue | 16 +++++++-- frontend/src/stores/resource.ts | 11 +++++- frontend/src/types/index.ts | 1 + frontend/src/views/ResourceList.vue | 5 +++ frontend/src/views/mobile/ResourceList.vue | 5 +++ 8 files changed, 89 insertions(+), 12 deletions(-) diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 609c95a..d85c927 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -43,6 +43,24 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] SearchBar: typeof import('./src/components/SearchBar.vue')['default'] + VanBackTop: typeof import('vant/es')['BackTop'] + VanButton: typeof import('vant/es')['Button'] + VanCell: typeof import('vant/es')['Cell'] + VanCellGroup: typeof import('vant/es')['CellGroup'] + VanCheckbox: typeof import('vant/es')['Checkbox'] + VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] + VanEmpty: typeof import('vant/es')['Empty'] + VanIcon: typeof import('vant/es')['Icon'] + VanImage: typeof import('vant/es')['Image'] + VanLoading: typeof import('vant/es')['Loading'] + VanOverlay: typeof import('vant/es')['Overlay'] + VanPopup: typeof import('vant/es')['Popup'] + VanSearch: typeof import('vant/es')['Search'] + VanTab: typeof import('vant/es')['Tab'] + VanTabbar: typeof import('vant/es')['Tabbar'] + VanTabbarItem: typeof import('vant/es')['TabbarItem'] + VanTabs: typeof import('vant/es')['Tabs'] + VanTag: typeof import('vant/es')['Tag'] } export interface ComponentCustomProperties { vLoading: typeof import('element-plus/es')['ElLoadingDirective'] diff --git a/frontend/src/components/Home/ResourceCard.vue b/frontend/src/components/Home/ResourceCard.vue index fa90887..6ae45bf 100644 --- a/frontend/src/components/Home/ResourceCard.vue +++ b/frontend/src/components/Home/ResourceCard.vue @@ -52,7 +52,13 @@