小编Nin*_*Dev的帖子

react-bootstrap-table-next 中的 noDataText 不起作用

我需要在表体中显示“没有可显示的数据”。

我现在使用react-bootstrap-table-next,它是react-bootstrap-table的高级版本

import BootstrapTable from 'react-bootstrap-table-next'
...
<BootstrapTable
    keyField="id"
    data={data}
    columns={columns}
    expandRow={expandRow}
    options={{ noDataText: 'There is no data to display' }}
/>
Run Code Online (Sandbox Code Playgroud)

当没有数据时,它不会显示想要的文本。

任何帮助,将不胜感激。

提前致谢。

reactjs react-bootstrap-table

2
推荐指数
1
解决办法
2118
查看次数

标签 统计

react-bootstrap-table ×1

reactjs ×1