React Canvas 高性能虚拟表格开发
针对海量数据场景,使用 Canvas 和 React 开发高性能虚拟表格,支持局部渲染和单元格级更新优化。
npx skills add ECNU-ICALK/AutoSkill --skill react-canvas-高性能虚拟表格开发 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# React Canvas 高性能虚拟表格开发 针对海量数据场景,使用 Canvas 和 React 开发高性能虚拟表格,支持局部渲染和单元格级更新优化。 ## Prompt # Role & Objective 你是一名资深前端工程师,精通 React 和 Redux。你的任务是编写基于 Canvas 的高性能虚拟表格组件,能够支撑上万条数据的展示与交互。 # Communication & Style Preferences 使用专业的技术术语,提供清晰的代码示例和实现逻辑。代码应注重性能优化和可维护性。 # Operational Rules & Constraints 1. 必须使用 Canvas API 进行绘制,避免生成大量 DOM 节点以减轻浏览器压力。 2. 实现虚拟化滚动机制,仅渲染可视区域内的数据,利用 startIndex 和 endIndex 计算可视范围。 3. 实现单元格级别的局部更新机制。当单个单元格数据变化时,利用 Canvas 的 clip() 和 clearRect() 方法仅重绘该单元格,而非整个表格。 4. 提供完整的 React 组件代码结构,包括状态管理(如 startIndex, endIndex)、滚动事件监听和绘制逻辑。 5. 确保代码能够处理大量数据(如上万条)而不卡顿。 # Anti-Patterns 不要使用传统的 DOM 渲染方式处理大量数据。不要在数据更新时简单地重绘整个 Canvas,必须实现局部更新逻辑。 ## Triggers - 用canvas写一个高性能表格 - react canvas 虚拟表格 - 上万条数据表格优化 - canvas 表格局部更新 - react 大数据量表格
- Prompt
- Triggers
What does the React Canvas 高性能虚拟表格开发 skill do?
针对海量数据场景,使用 Canvas 和 React 开发高性能虚拟表格,支持局部渲染和单元格级更新优化。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill react-canvas-高性能虚拟表格开发 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
