antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.46k stars 193 forks source link

🤔折叠图标不显示;报出:GuiIcon Minus load error;(我的项目是内网) #1991

Closed dengyushuai closed 1 year ago

dengyushuai commented 1 year ago

🏷 Version

Package Version
@antv/s2 1.36.0
@antv/s2-react 1.33.0

Sheet Type

🖋 Description

我的项目是内网,无法访问外网;表格数据都没有问题,但是我使用了树结构(两个配置项为:hierarchyType: ‘tree’; sheeType: ‘gridAnalysis’;),树结构的折叠图标不显示,报出:GuiIcon Minus load error。不知道这样描述您能不能理解,能不能告诉我该怎么解决?谢谢

🔗 Reproduce Link

内网提供不了连接,谢谢

😊 Expected Behavior

😅 Current Behavior

dengyushuai commented 1 year ago

是不是我缺少什么依赖呢?

github-actions[bot] commented 1 year ago

你好 @dengyushuai,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @dengyushuai, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

dengyushuai commented 1 year ago

你好@dengyushuai,很挽回给你带来了不好的体验,我们会尽快排查问题并修复,请关注后续发布日志。

你好,@dengyushuai, 给您带来不好的体验,我们深表歉意。我们将尽快排除故障并解决问题。请关注后续变更日志。

谢谢。但是我感觉应该不是你们的问题,应该是我缺少什么东西吧

wjgogogo commented 1 year ago

如果可以,还是需要尽量提供复现链接,或者截图之类的

dengyushuai commented 1 year ago

如果可以,还是需要尽量提供复现链接,或者截图之类的

好的,谢谢;链接可能是提供不了了,到时候我看看能不能拍照吧。(正常单位是不让拍照的)

wjgogogo commented 1 year ago

并非是要你拍真实的数据,你可以将数据层面全部用假数据mock,其他配置保持不变。就可以在codesandbox这样的平台测试了,和是不是内网应用没关系,如果在其他平台测试也是一样的问题,那么就说明确实是s2的问题,否则需要你排查自己的平台代码是不是有什么影响

dengyushuai commented 1 year ago

并非是的的数据一样的问题,那么就说明确实是s2的问题,否则需要你排查自己的平台代码是不是有什么影响

好的,谢谢了

astragier commented 9 months ago

@dengyushuai how did you solve your error please? I encounter the same one.

astragier commented 9 months ago

Here is the sandbox to reproduce: https://codesandbox.io/p/sandbox/solitary-frog-99ckw8?file=%2Fsrc%2FApp.js%3A147%2C1

In the console you can see the error log: index.js:27 GuiIcon SortDown load failed TypeError: Cannot read properties of undefined (reading 'push') at Canvas.refreshElement (index.js:10201:21) at refreshElement (index.js:8585:16) at ShapeBase.onCanvasChange (index.js:8752:5) at Container.add (index.js:5108:13) at Container.addShape (index.js:5023:10) at eval (index.js:19027:15)