小编ant*_*lam的帖子

如何从 v7 (React-Table) 中的列访问另一列的值

我在以前的版本中看到您可以使用以下方式访问它:

const columns = [
  {
    Header: "Name",
    accessor: "name",
    Cell: (e) => {
      return e.original.name;
    }
  }
];
Run Code Online (Sandbox Code Playgroud)

但在 v7 中它不起作用。

react-table react-table-v7

6
推荐指数
1
解决办法
7152
查看次数

标签 统计

react-table ×1

react-table-v7 ×1