Reproduction link
Steps to reproduce
1.同时配置表格的expandable中的childrenColumnsName和rowExpandable
What is expected?
子表格的可展开按钮根据rowExpandable受控
What is actually happening?
子表格的可展开按钮不受控
Environment | Info |
---|---|
antd | 4.22.7 |
React | 16.14.30 |
System | macOS Monterey 12.3.1 |
Browser | Google Chorme 104.0.5112.101(正式版本)(arm64) |
树形结构数据的子数据不存在时(空值或空数组),不显示对应行的展开按钮
2条答案
按热度按时间cyvaqqii1#
https://codesandbox.io/s/antd-reproduction-template-forked-e35jwm?file=/index.js
貌似 rowExpandable 目前都不会被调用,即使没有 childrenColumnsName
doinxwow2#
哦,rowExpandable 目前应该只针对 expandedRowRender 生效。
https://ant.design/components/table-cn/#components-table-demo-expand