lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

在outline tree/大纲树中 1.1.2版本出现组件展开失常问题

Open huxingyi1997 opened this issue 1 year ago • 3 comments

Describe the bug (required) / 详细描述 bug(必填)

A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述

在outline tree/大纲树中 1.1.2版本中,在右侧panel区域显示大纲树后,左侧大纲树插件中容器组件展开功能失常,无法展开

To Reproduce (required) / 如何复现 bug?(必填,非常重要)

Steps to reproduce the behavior: / 详细复现步骤:


  1. 打开 demo
  2. 打开左侧大纲树,注意不要展开Page image
  3. 拖拽新的组件至Page内部,注意右侧出现大纲树,且Page处于展开状态 image
  4. 重新打开左侧大纲树,此时Page无法展开 Screen Shot 2023-03-03 at 5 57 13 PM 其他容器组件也会出现同样的问题

Expected behavior (required) / 预期行为(必填,非常重要)

A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为


修复右侧大纲树与左侧大纲树展开不同插件后左侧大纲树插件容器组件展开功能失常的问题,左侧大纲树中的容器组件能够正常展开

Screenshots (optional) / bug 截图(可选)

Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题


在复现步骤中

Environments (please complete the following information) (required): / 请提供如下信息(必填)

  • AliLowCodeEngine version / 低代码引擎版本: 1.1.2
  • AliLowCodeEngineExt version: [e.g. 1.0.0] / 低代码引擎扩展包版本: 1.1.2
  • Browser / 浏览器版本: chrome
  • materials / plugins / tools / 其他物料 / 插件 / 工具链版本: 1.1.2

(this information can be collected via the manual plugin / 版本信息可通过低代码用户手册插件收集)

Additional context (optional) / 更多额外信息(可选)

在packages/plugin-outline-pane/src/index.tsx文件中,可以看出左右2个plugin-outline-tree共用了同一个TreeMaster实例,经过短暂测试使用不同TreeMaster实例不会产生此问题,但不知道是否可能产生其他潜在问题,愿意辅助开发

huxingyi1997 avatar Mar 03 '23 10:03 huxingyi1997

我还发现大纲树其他的问题,比如弹框在大纲树中的隐藏显示问题,多点几次,隐藏和显示的状态就不一致了,页面组件越多,这个问题更明显。

jurieo avatar Mar 04 '23 01:03 jurieo

复现了,是bug

JackLian avatar Mar 06 '23 01:03 JackLian

Hello @huxingyi1997. We totally like your proposal/feedback, PR wanted。

你好 @huxingyi1997,我们完全同意你的提议/反馈,欢迎 PR。

github-actions[bot] avatar Mar 06 '23 02:03 github-actions[bot]