cycyexcel
English0.2.0

EXAMPLES

基础表格

用 createSheet() 创建一个带工具栏的可编辑表格。

只挂核心

createSheet() 不依赖 Custom Elements 注册表,默认启用工具栏和编辑栏。

ts
import { CyExcelCore, matrixToWorkbookSnapshot } from "cyexcel/core";

const sheet = createSheet(document.querySelector("#sheet"), {
  snapshot: matrixToWorkbookSnapshot(rows),
  headerHeight: 28,
  rowHeaderWidth: 48
});

真实运行

可以编辑单元格、调整列宽、多选单元格和使用键盘导航。