From 92dc0deb43bebf8b82632ce678066489a3e80259 Mon Sep 17 00:00:00 2001 From: icebergtsn Date: Mon, 16 Dec 2024 21:58:40 +0800 Subject: [PATCH] fix: update download progress text effect and replace homepage banner component --- .../src/components/appcard/InstallButton.vue | 32 ++- frontend/src/components/appcard/MyAppCard.vue | 2 + .../src/components/base/AppStoreSwiper.vue | 4 +- frontend/src/components/base/BtBanner.vue | 250 +++++++++++++----- .../src/components/base/ProgressButton.vue | 124 +++++++++ frontend/src/pages/application/HomePage.vue | 4 +- 6 files changed, 339 insertions(+), 77 deletions(-) create mode 100644 frontend/src/components/base/ProgressButton.vue diff --git a/frontend/src/components/appcard/InstallButton.vue b/frontend/src/components/appcard/InstallButton.vue index 6f76c37..8ea37aa 100644 --- a/frontend/src/components/appcard/InstallButton.vue +++ b/frontend/src/components/appcard/InstallButton.vue @@ -26,7 +26,6 @@ @mouseover="updateHover(true)" @mouseleave="updateHover(false)" dense - :percentage="item.progress ? Number(item.progress) : 0" flat no-caps > @@ -40,14 +39,14 @@ > {{ status }} -
- - {{ item.progress ? Number(item.progress) + '%' : '0%' }} -
+ :progress="item.progress" + :covered-text-color="white" + :default-text-color="blueDefault" + :progress-bar-color="blueDefault" + />
- +
- +
- - - diff --git a/frontend/src/components/base/ProgressButton.vue b/frontend/src/components/base/ProgressButton.vue new file mode 100644 index 0000000..96eeb6f --- /dev/null +++ b/frontend/src/components/base/ProgressButton.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/frontend/src/pages/application/HomePage.vue b/frontend/src/pages/application/HomePage.vue index 81e8889..6c51cae 100644 --- a/frontend/src/pages/application/HomePage.vue +++ b/frontend/src/pages/application/HomePage.vue @@ -14,12 +14,12 @@ class="home-padding" style="padding-top: 20px; padding-bottom: 20px" > -