想要做一个类似 Excel 的工具/网站,用户可以使用脚本/规则定义单元格(Cell)的颜色,比如自己解码图片如何显示的。
Cell — Spreadsheet-like Grid
A React + TypeScript spreadsheet-style grid with numeric headers, auto-fit and fixed sizing, selection + manual coloring, rule-based coloring, image mapping, and JSON save/load.
Demo
Run the local demo (Vite):
cd apps/demonpm run dev
Open http://localhost:5173.
Features
- Numeric row/column headers (1-based)
- Fixed sizing or auto-fit sizing (fills container)
- Responsive layout recalculation on resize
- Scroll on overflow or min cell constraints
- Single-cell selection highlight
- Rule-based coloring (JSON rules)
- Image-to-grid mapping (nearest neighbor)
- Save/load grid state as JSON
Screenshots

Cell —— 类 Excel 网格
基于 React + TypeScript 的类 Excel 网格组件,支持数字行列头、自动/固定 尺寸、选择与填色、规则脚本着色、图片映射着色,以及 JSON 保存/加载。
运行 Demo
cd apps/demonpm run dev
浏览器打开 http://localhost:5173。
功能特性
截图