We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react
16.8.6
rsuite-table
5.9.0
import { TREE_DEPTH } from 'rsuite-table/src/constants'; let Child = React.memo(() => { ..... return ( <div> <Table isTree={true} virtualized showHeader={false} height={props.viewState.height} rowKey="value" data={data} shouldUpdateScroll={false} defaultExpandAllRows onRowClick={(rowData) => { console.log(rowData); /// 为什么我这里获取不到数据呢?这个使用有什么讲究吗,大佬 console.log(rowData[TREE_DEPTH]) }} > <Column flexGrow={1} > <HeaderCell >label</HeaderCell> <Cell dataKey="label" /> </Column> <Column width={100}> <HeaderCell>comment</HeaderCell> <Cell dataKey="price" /> </Column> </Table> </div> ); }) return (<Child />);
-->
The text was updated successfully, but these errors were encountered:
你取的 TREE_DEPTH 是 rsuite-table/src/constants 目录下的 Symbol ,和你使用 Table 使用的不是同一个 Symbol 。
rsuite-table/src/constants
rsuite-table/es/constants
rsuite-table/lib/constants
Sorry, something went wrong.
No branches or pull requests
Versions
react
16.8.6
rsuite-table
5.9.0
-->
The text was updated successfully, but these errors were encountered: