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

固定列和嵌套子表格一起使用时,展开子集,错位问题 #3223

Open
1 task
mkxj opened this issue Nov 20, 2020 · 7 comments
Open
1 task

固定列和嵌套子表格一起使用时,展开子集,错位问题 #3223

mkxj opened this issue Nov 20, 2020 · 7 comments

Comments

@mkxj
Copy link

mkxj commented Nov 20, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.2

Environment

win10 "vue": "^2.6.11"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

首先固定左侧第一列,然后展开子表格,页面错位了

What is expected?

固定左侧列后,展开子表格,页面正常展示

What is actually happening?

固定左侧列后,展开子表格,页面错位,出现了两个子表格


我看antd在4.0.0-rc.0版本修复了该问题

@yungshenglu
Copy link

Is there any help to fix this issue?

@chendeli123
Copy link

我的也是,固定列错位,因为固定列自己就是个表格,所以展开的时候,固定列没有跟随嵌套表格展开,希望能解决这个问题

@twltony
Copy link

twltony commented Oct 28, 2021

同样的问题,希望能得到解决

@yaoyonstudio
Copy link

同样的问题

@yjzfun
Copy link

yjzfun commented Sep 23, 2022

@tangjinzhou #2470 这个问题2020年也有人提出来了,请问有计划解决这个问题吗

@huanganfree
Copy link

也遇到了嵌套子表格,展开后,固定列错位问题 @tangjinzhou

@chenwei1109
Copy link

expandedOneRow(expanded, rec) {
this.expandedRowKeys = expanded ? [rec.key] : []
this.$nextTick(() => {
setTimeout(() => {
const element = document.querySelectorAll([data-row-key='${rec.id}-extra-row'])
// 25 是td 的 padding 值 加 border值
const height = element[0].getBoundingClientRect().height - 25
element[1].childNodes[0].innerHTML = <div style="height: ${height}px;"></div>
}, 0)
})
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants