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
当我尝试将 S2 表格从 [email protected] 升级至 [email protected]、[email protected]升级至[email protected] 发现在树状模式下 hierarchyType:tree ,若子节点无数据父节点不展示 折叠与展开按钮了,因以前是通过点击折叠按钮获取子节点数据的。所以想咨询一下目前怎么配置可以使展开折叠按钮一直显示?
https://codesandbox.io/p/sandbox/async-leaf-fmt353
The text was updated successfully, but these errors were encountered:
若子节点无数据父节点不展示 折叠与展开按钮了
之前的版本能展示是 bug, 叶子节点不展示符合预期.
因以前是通过点击折叠按钮获取子节点数据的。所以想咨询一下目前怎么配置可以使展开折叠按钮一直显示?
可以自定义 rowCell, 重写 默认 icon 的展示规则, 比如第一层级始终展示
class CustomRowCell extends RowCell { showTreeIcon() { return ( this.spreadsheet.isHierarchyTreeType() && (!this.meta.isLeaf || this.meta.level === 0) ); } } const s2Options = { rowCell: (node, spreadsheet, headerConfig) => { return new CustomRowCell(node, spreadsheet, headerConfig); } }
Sorry, something went wrong.
lijinke666
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
当我尝试将 S2 表格从 [email protected] 升级至 [email protected]、[email protected]升级至[email protected]
发现在树状模式下 hierarchyType:tree ,若子节点无数据父节点不展示 折叠与展开按钮了,因以前是通过点击折叠按钮获取子节点数据的。所以想咨询一下目前怎么配置可以使展开折叠按钮一直显示?
🔗 Reproduce Link
https://codesandbox.io/p/sandbox/async-leaf-fmt353
😊 Expected Behavior
😅 Current Behavior
The text was updated successfully, but these errors were encountered: