如何解决为什么我的带有表组件的React应用程序不显示所有记录?
为什么我的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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。