Reactjs 为什么我的React应用程序与表组件不兼容';不显示所有记录吗?
为什么我的React应用程序与来自的表组件不显示所有记录?它只显示{ 返回{(rowIndex*columnIndex).toString()} } }Reactjs 为什么我的React应用程序与表组件不兼容';不显示所有记录吗?,reactjs,datatable,blueprint,Reactjs,Datatable,Blueprint,为什么我的React应用程序与来自的表组件不显示所有记录?它只显示{ 返回{(rowIndex*columnIndex).toString()} } } 该问题是由错误的css引起的。 数据库或表中有多少条记录?我使用的数据集中大约有700条记录。但我认为这并不重要,因为如果数据集中只有202条记录,它只会显示201条记录。JS控制台或React控制台中没有错误? import React, { Component } from 'react'; import {Table,
该问题是由错误的css引起的。
数据库或表中有多少条记录?我使用的数据集中大约有700条记录。但我认为这并不重要,因为如果数据集中只有202条记录,它只会显示201条记录。JS控制台或React控制台中没有错误?
import React, { Component } from 'react';
import {Table, Column, Cell} from '@blueprintjs/table';
import "@blueprintjs/table/lib/css/table.css"
export default class App extends Component{
public render() {
return (
<Table numRows={500} enableGhostCells = {true}>
<Column key={1} name = {"0"} cellRenderer={this.ColumnHeaderCellRenderer}/>
</Table>
)
}
ColumnHeaderCellRenderer = (rowIndex, columnIndex) => {
return <Cell>{(rowIndex*columnIndex).toString()}</Cell>
}
}