From 586b506fca2b81807d3786901442e51d18c244fa Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 00:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E7=A5=88=E6=84=BF=E5=9B=BE=E8=A1=A8=20close#166?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initial plan * Refactor wish calendar - split charts into separate components with scrollbar support Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Address code review feedback - improve error handling and comments Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Move chart logic to components and remove v-if guards Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix UID switching reactivity, add scrollbar spacing, and fix download functionality Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Use proper ECharts ComposeOption type declarations Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> --- .../userGacha/gro-chart-calendar.vue | 155 +++++++++++++ .../userGacha/gro-chart-overview.vue} | 204 ++++++++---------- .../userGacha/gro-chart-stackbar.vue | 165 ++++++++++++++ src/components/userGacha/gro-echarts.vue | 100 ++------- 4 files changed, 429 insertions(+), 195 deletions(-) create mode 100644 src/components/userGacha/gro-chart-calendar.vue rename src/{utils/gachaCharts.ts => components/userGacha/gro-chart-overview.vue} (54%) create mode 100644 src/components/userGacha/gro-chart-stackbar.vue diff --git a/src/components/userGacha/gro-chart-calendar.vue b/src/components/userGacha/gro-chart-calendar.vue new file mode 100644 index 00000000..05b24620 --- /dev/null +++ b/src/components/userGacha/gro-chart-calendar.vue @@ -0,0 +1,155 @@ + + + + + + diff --git a/src/utils/gachaCharts.ts b/src/components/userGacha/gro-chart-overview.vue similarity index 54% rename from src/utils/gachaCharts.ts rename to src/components/userGacha/gro-chart-overview.vue index 00b435b6..b9f632f5 100644 --- a/src/utils/gachaCharts.ts +++ b/src/components/userGacha/gro-chart-overview.vue @@ -1,20 +1,75 @@ -/** - * @file utils/gachaCharts.ts - * @description 祈愿图表配置 - * @since Beta v0.8.2 - */ - + + + + + + diff --git a/src/components/userGacha/gro-chart-stackbar.vue b/src/components/userGacha/gro-chart-stackbar.vue new file mode 100644 index 00000000..a89a605a --- /dev/null +++ b/src/components/userGacha/gro-chart-stackbar.vue @@ -0,0 +1,165 @@ + + + + + + diff --git a/src/components/userGacha/gro-echarts.vue b/src/components/userGacha/gro-echarts.vue index f9d26e87..d3399642 100644 --- a/src/components/userGacha/gro-echarts.vue +++ b/src/components/userGacha/gro-echarts.vue @@ -1,4 +1,3 @@ - @@ -15,66 +14,25 @@ width="200px" /> - + + + + +