问题描述
为什么我的Blueprintjs中带有Table组件的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>
}
}
解决方法
问题是由不正确的CSS引起的。 https://github.com/palantir/blueprint/issues/1807