我需要在表体中显示“没有可显示的数据”。
我现在使用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)
当没有数据时,它不会显示想要的文本。
任何帮助,将不胜感激。
提前致谢。