当前位置: 首页 > news >正文

今天真是破防的一天,Ant design Pro V6做ProList调试的时候直接崩溃

image

<ProList<API.Chart>itemLayout="vertical"rowKey="id"dataSource={chart1}// 1. 配置分页pagination={{current: currentPage,pageSize: 1,total: total,showSizeChanger: false,showQuickJumper: false,onChange: (page) => {setCurrentPage(page);fetchData();},}}// 2. 搜索配置 - 内置搜索栏,对应图中的搜索框search={{filterType: 'query',      // 查询模式searchText: '搜索图表',    // 搜索框占位文字labelWidth: 'auto',}}columns={columns}renderItem={(item: any, index) => (<divkey={item.id}style={{background: '#fff',borderRadius: 12,marginBottom: 16,padding: 20,boxShadow: '0 1px 2px rgba(0,0,0,0.03)',}}>{/* 桌面端:左右布局 */}<div className="chart-card-desktop" style={{ display: 'flex', gap: 24, alignItems: 'flex-start' }}>{/* 左侧信息 */}<div className="chart-info" style={{ flex: 1 }}><div style={{ fontSize: 16, fontWeight: 500, marginBottom: 8 }}>{item.name || '未命名图表'}</div><div style={{ fontSize: 13, color: '#8c8c8c', marginBottom: 12 }}>图表类型:{item.chartType || '未定义'}</div><div style={{background: '#f6f9ff',padding: '12px 16px',borderRadius: 8,}}><div style={{ fontSize: 12, color: '#1890ff', marginBottom: 4 }}>分析目标</div><div style={{ fontSize: 13, color: '#262626' }}>{item.goal || '未设置'}</div></div></div>{/* 右侧图表:占60%宽度 */}<div className="chart-wrapper" style={{ flex: '0 0 60%', minWidth: 0 }}>{options ? (<ReactECharts option={options} style={{ height: 300, width: '100%' }} />) : (<div style={{height: 300,background: '#fafafa',display: 'flex',alignItems: 'center',justifyContent: 'center',borderRadius: 8,color: '#bfbfbf'}}>请先在左侧进行提交</div>)}{chartResult && (<div style={{marginTop: 12,fontSize: 13,color: '#595959',background: '#f9f9f9',padding: '10px 12px',borderRadius: 6}}><span style={{ color: '#1890ff' }}>总结:</span>{chartResult}</div>)}</div></div>{/* 手机端:上下布局(默认隐藏,通过媒体查询显示) */}<div className="chart-card-mobile" style={{ display: 'none' }}>{/* 上方信息 */}<div style={{ marginBottom: 16 }}><div style={{ fontSize: 16, fontWeight: 500, marginBottom: 8 }}>{item.name || '未命名图表'}</div><div style={{ fontSize: 13, color: '#8c8c8c', marginBottom: 12 }}>图表类型:{item.chartType || '未定义'}</div><div style={{background: '#f6f9ff',padding: '12px 16px',borderRadius: 8,marginBottom: 16}}><div style={{ fontSize: 12, color: '#1890ff', marginBottom: 4 }}>分析目标</div><div style={{ fontSize: 13, color: '#262626' }}>{item.goal || '未设置'}</div></div></div>{/* 下方图表 */}<div>{options ? (<ReactECharts option={options} style={{ height: 300, width: '100%' }} />) : (<div style={{height: 300,background: '#fafafa',display: 'flex',alignItems: 'center',justifyContent: 'center',borderRadius: 8,color: '#bfbfbf'}}>请先在左侧进行提交</div>)}{chartResult && (<div style={{marginTop: 12,fontSize: 13,color: '#595959',background: '#f9f9f9',padding: '10px 12px',borderRadius: 6}}><span style={{ color: '#1890ff' }}>总结:</span>{chartResult}</div>)}</div></div></div>)}/>

我就做了一个简单的看板,分页搜索功能加上,仅此而已。

它居然oom了!!!

解决方案明天想吧,累了。

http://www.jsqmd.com/news/557178/

相关文章:

  • CTF实战:LCG算法破解与逆向分析
  • YimMenu实战指南:从入门到精通的GTA5体验增强
  • 普通数组——缺失的第一个正数
  • 【JAVA】Spring3.x中的swagger配置基础教程
  • 文明狭义论与广义论
  • QWEN-AUDIO性能优化指南:让语音合成速度提升50%的实用技巧
  • Easysearch ZSTD 基准测试:高压缩率下实现近 5 倍查询吞吐
  • 3分钟搞定全网音乐歌词下载与管理的终极指南:网易云音乐与QQ音乐歌词批量处理
  • three-csg-ts:三维布尔运算的优雅解决方案
  • 保姆级避坑指南:在Ubuntu 22.04上搞定奥比中光AstraPro深度相机与ROS2 Humble的驱动配置
  • WPF颜色转换器实战:如何用ConverterParameter动态切换UI主题色(附完整代码)
  • Vue项目里图片403报错?试试在index.html里加这行meta标签
  • 告别轮询延时!在RTOS里优雅处理AT24C02的Write Cycle等待
  • 2026年铝方通铝扣板应用白皮书家居吊顶篇:青岛铝方通格栅、青岛铝方通隔断、青岛集成吊顶铝扣板、青岛U型铝方通选择指南 - 优质品牌商家
  • 避坑指南:Android虚拟摄像头开发中JPG转YUV的SELinux权限与符号链接问题全解析
  • 记一次SQL server2008 数据库事务日志已满,导致程序崩溃排查过程
  • 2026年工业防火门市场测评:五大实力厂商深度解析与选型指南 - 2026年企业推荐榜
  • 突破平台限制:开源工具WorkshopDL实现Steam创意工坊内容自由获取
  • EfficientNet实战:如何在移动端部署B0-B7模型(附显存优化技巧)
  • LlamaIndex中文文档全解析:从安装到实战RAG系统的保姆级指南
  • Outline数据迁移架构深度解析:5大策略构建企业级知识库无缝迁移方案
  • 从单任务到持续学习:AI原生应用的演进之路
  • 通达信数据接口实战指南:用MOOTDX构建量化投资数据引擎
  • OpenClaw+GLM-4.7-Flash内容创作实测:从选题到发布的自动化链路
  • 4大维度重塑数据库实验流程:让命令行成为数据库管理的瑞士军刀
  • 3大突破!LxgwWenKai如何解决嵌入式系统中文显示难题?
  • Iono系列工业PLC模块:Arduino生态的工业级演进
  • 航拍小目标检测入门必看:YOLOv8 VisDrone实战第一阶段,基线mAP从32%提升至58%
  • Python内存修复黄金法则(CPython内存管理内核级解析)
  • 新手也能看懂的LMXCMS 1.4代码审计:从MVC架构入手,一步步挖出两个后台RCE漏洞