griddle-react API 未找到

griddle-react API not found

提前致谢。我接手了一个旧项目,必须解决一些问题。它使用 griddle-react,代码如下:

 import Griddle from 'griddle-react';
 ......

        <Griddle
          useExternal
          externalSetPage={ this.setSearchPage }
          externalChangeSort={ noop }
          externalSetFilter={ noop }
          externalSetPageSize={ noop }
          externalMaxPage={ this.state.totalPages }
          externalCurrentPage={ this.state.currentPage }
          useGriddleStyles={ false }
          tableClassName="table table-bordered data-table"
          results={ this.state.listings }
          columns={ columns }
          columnMetadata={ columnMetadatas }
          noDataMessage="No search result"
        />

但是当我查看官方文档时,我没有找到任何关于 columnMetadata, columns

我检查了 package.json 文件:

  "griddle-react": "0.6.0",

我是不是走错地方了?或者 version0.6 是否已被弃用?我在哪里可以找到 version0.6 API 文档?

Use the columns property to set the default columns in a Griddle grid.

The column meta data property is used to specify column properties that are not part of the result data object. For instance, if you want to specify a displayName that is different than the property name in the result data, the columnMetadata property is where this would be defined.

您可以找到 columnMetadatacolumns here

的文档

这是他们的旧文档link

如果没有帮助,另一种选择是查看其 GitHub 中的源代码。 这是一个版本 0.6.0 标签。