PORT CONTRACT

清洗一份脏数据

在一个电子表格会话中查找、分列、去重、筛选、排序并撤销。

试试这个

  1. 选择一个区域并编辑。
  2. 通过工具栏应用一个数据操作。
  3. 撤销该操作并继续编辑。

它是怎么做到的

Chrome 在同一 backend 周围组合可选 UI 能力。本骨架保留真实 worker 路径,后续场景 seed 可以展示数据工具,而无需替换网格架构。

查看源码

import type {
  DisplayCell,
  StaticSeedMatrix,
  StaticSpreadsheetSeed,
} from '@einfach/solid-excel/vnext'

const matrix: StaticSeedMatrix = [
  ['Full Name', 'Department', 'Q1 Sales', 'Q2 Sales', 'Total', 'Values-only target'],
  ['Diaz, Maria', 'Sales', 420, 380, null],
  ['Chen, Wei', 'Marketing', 310, 295, null],
  ['Diaz, Maria', 'Sales', 420, 380, null],
  ['Okafor, Ada', 'Sales', 275, 300, null],
  ['Nguyen, Linh', 'Support', 190, 210, null],
  ['Chen, Wei', 'Marketing', 310, 295, null],
  ['Rossi, Marco', 'Marketing', 260, 240, null],
  ['Okafor, Ada', 'Sales', 275, 300, null],
  ['Haddad, Yara', 'Support', 330, 315, null],
  ['Petrova, Ana', 'Finance', 400, 420, null],
]

const cells: DisplayCell[] = matrix.slice(1).map((_, dataIndex) => {
  const row = dataIndex + 2
  return {
    row: dataIndex + 1,