reactjs - 为什么页面指南删除了滚动表格的能力?
问题描述
我正在使用 react-joyride 库,并且正在尝试为我的 tabke 制作页面指南,但它消除了添加 PageGuide 时水平和垂直滚动的能力。
pageGuide.js
export default function PageGuide() {
return (
<Joyride
run={true}
callback={() => null}
steps={[
{
content:
"This column MUST remain empty and untouched in order for your data to work properly.",
target: ".react-grid-Cell:nth-child(1) "
},
{
content:
"Beginning from this column and continuing to the right, you may name the columns to letters. Every column name will be turned into a label for your chart.",
target: ".react-grid-Cell:nth-child(2) "
},
{
content:
"This column has been configured to listen to an onContextMeny event. When the cell is right clicked, a message will be logged to the console",
target: ".react-grid-Cell:nth-child(25) "
}
]}
/>
);
}
main.js
<ReactDataGrid
columns={this.state.columns}
rowGetter={i => this.state.rows[i]}
rowsCount={this.state.rows.length}
onGridRowsUpdated={this.onGridRowsUpdated}
enableCellSelect={true}
/>
<PageGuide />
当我在主反应文件中添加 PageGuide 时,它会删除我的表格滚动功能,任何人都可能知道为什么?
解决方案
推荐阅读
- validation - Laravel 5.5 表单验证数字/整数接受非数字字符,如“+”
- java - 开始使用 Junit。通过命令行编译时出错
- html - 当我使用 data-toggle="table" 时,内容显示为纯文本
- java - Spring Boot 找不到 PersistentEntity
- javascript - 将函数传递给 dangerouslySetInnerHTML 中的按钮不起作用
- rust - 在 Rust 中更改 .exe 文件的图标
- angular - 如何在角度中使用织物 js 设置画布边界圆形
- mysql - 无法确定正确的调用签名 - mysql 中不同模式的相同存储过程
- visual-studio - Visual Studio 在创建空项目时显示 linux
- sql - 内部连接后的自连接