Skip to content
New issue

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

[Bug] 容器Group 问题 #3314

Open
xiaoshengwpp opened this issue Jan 13, 2025 · 3 comments
Open

[Bug] 容器Group 问题 #3314

xiaoshengwpp opened this issue Jan 13, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@xiaoshengwpp
Copy link

xiaoshengwpp commented Jan 13, 2025

Version

1.15.0

Link to Minimal Reproduction

Steps to Reproduce

reacttable 使用Group 容器遇到的问题
<Group
attribute={{
width,
height,
display: 'flex',
alignItems: 'center',
//...
//...
}}
>

    <Group
      attribute={{
        width: 10,
        height,
        //
        react: {
          pointerEvents: true,
          container: table.bodyDomContainer,
          element: render(dataValue, record),//此处 在固定列中 展示不出来  不配置固定咧的情况下正常
        },
      }}
    />
    {/* ... */}
  //其它图元内容
  </Group>

使用Group 来布局的单元格的时候 Group内 在放一个Group图元 用来展示 dom 组件的时候 如果这一列 设置了固定列 那么自定义的 dom 会展示不出来;
如果注释掉 container: table.bodyDomContainer,这行 可以展示出来 ,但是自定义的 dom 组件 zindex 会高于 其它列 产生遮挡
1.可能需要解决 Group 包裹的Group 自定义 dom元素 在固定列上的展示问题
2.或者给出 调整 zindex 层级的 api 不遮挡内容

Current Behavior

Expected Behavior

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@xiaoshengwpp xiaoshengwpp added the bug Something isn't working label Jan 13, 2025
@xiaoshengwpp
Copy link
Author

@Rui-Sun 1.15.0 版本支持么 设置了下 没有生效

@Rui-Sun
Copy link
Contributor

Rui-Sun commented Jan 17, 2025

仔细看了一下,之前的回答有问题,container的配置应该只需要body和header两中,会自动调整,我试了一下body在frozen的时候是正常的,能提供一下复现的环境吗?

Image

@xiaoshengwpp
Copy link
Author

@Rui-Sun 复现飞书发您了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants