antvis/G6
Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: indented 缩进树indent 无法使用函数传值 #6954
9374 posted onGitHub
Describe the bug / 问题描述
- 插件版本 "@antv/g6": "4.8.24"
- 官方文档[https://g6-v4.antv.vision/zh/examples/tree/indented/#filesystem]中支持函数传参
<img width="1529" alt="Image" src="https://github.com/user-attachments/assets/aeff5f64-c83a-40d5-a4e7-c757582a8a58" />
Reproduction link / 复现链接
https://codesandbox.io/p/sandbox/interesting-sun-r65dl3?file=%2Findex.js%3A124%2C23
Steps to Reproduce the Bug or Issue / 重现步骤
indent: () => 230,
实际操作并不生效
<img width="1751" alt="Image" src="https://github.com/user-attachments/assets/67cff122-569d-4fab-8539-117dc357ee21" />
Version / 版本
4.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他