From ac3201028f4bb894b2008737ffe8e0220174090a Mon Sep 17 00:00:00 2001 From: sunqh <253801736@qq.com> Date: Fri, 30 Jan 2026 16:58:42 +0800 Subject: [PATCH] echarts --- src/pages/Index/index.tsx | 28 +++++++++++++++++++++------- src/pages/Staff/Grp/index.tsx | 2 +- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/pages/Index/index.tsx b/src/pages/Index/index.tsx index 2429784..89b5edd 100644 --- a/src/pages/Index/index.tsx +++ b/src/pages/Index/index.tsx @@ -34,9 +34,23 @@ const Index: React.FC = () => { xField: 'date', yField: 'count', smooth: true, // 平滑曲线 - point: { size: 4, shape: 'circle' }, // 小圆点 - tooltip: { showMarkers: true }, - height: 300, + height: 380, + point: { + shape: 'circle', + size: 4, + }, + tooltip: { + title: 'date', + items: [ + { + channel: 'y', + name: '用户注册数', + }, + ], + }, + style: { + lineWidth: 2, + }, }; return ( @@ -164,17 +178,17 @@ const Index: React.FC = () => {