Skip to content
Back to skills

React Canvas 高性能虚拟表格开发

ASecurity

针对海量数据场景,使用 Canvas 和 React 开发高性能虚拟表格,支持局部渲染和单元格级更新优化。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationreactapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'react-canvas-高性能虚拟表格开发' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Canvas 高性能虚拟表格开发?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Canvas 高性能虚拟表格开发
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-react-canvas/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-react-canvas)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "a2543e96-dc19-4e05-982b-43dbd078ab25"
name: "React Canvas 高性能虚拟表格开发"
description: "针对海量数据场景,使用 Canvas 和 React 开发高性能虚拟表格,支持局部渲染和单元格级更新优化。"
version: "0.1.0"
tags:
  - "React"
  - "Canvas"
  - "虚拟表格"
  - "性能优化"
  - "前端开发"
triggers:
  - "用canvas写一个高性能表格"
  - "react canvas 虚拟表格"
  - "上万条数据表格优化"
  - "canvas 表格局部更新"
  - "react 大数据量表格"
---

# 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 大数据量表格

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.