13a51bc7f5
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>
40 lines
992 B
JSON
40 lines
992 B
JSON
{
|
|
"name": "web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"postinstall": "node scripts/sync-cesium-assets.mjs",
|
|
"prebuild": "node scripts/sync-cesium-assets.mjs",
|
|
"dev": "next dev --webpack",
|
|
"build": "next build --webpack",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@antv/x6": "^3.1.7",
|
|
"@tanstack/react-query": "^5.90.5",
|
|
"antd": "^5.29.3",
|
|
"cesium": "^1.140.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^12.38.0",
|
|
"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": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.3",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|