[feat]:[FL-132][P 曲线表格改为折线图展示]

1. 在 web/package.json 中添加 recharts 的必需依赖:react-redux 和 reselect
2. 在 lightning-distribution/page.tsx 中导入 recharts 组件
3. 将"峰值超越概率(P 曲线)"卡片改为折线图 + 可收起表格的展示方式:
   - 折线图为主视图,展示电流阈值(kA)与超越概率的关系
   - Y 轴在 50% 处添加水平参考线标注中值
   - 支持 tooltip 悬浮查看精确数值(阈值、概率、次数)
   - 表格放在 details 元素中,默认收起,用户可展开查看精确数值
4. 图表使用项目已有的 recharts 库,与 lightning-currents 页面保持一致

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-15 19:10:20 +08:00
parent d23ac4f74c
commit 13a51bc7f5
2 changed files with 99 additions and 16 deletions
+2
View File
@@ -21,7 +21,9 @@
"next": "16.2.3",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-redux": "^9.3.0",
"recharts": "^3.8.1",
"reselect": "^5.2.0",
"tailwind-merge": "^3.5.0"
},
"devDependencies": {