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

colum列兼容后 把check列也fixed 滚动时选中的行会错行显示 #27

Closed
anchuanyuan opened this issue Jul 24, 2023 · 5 comments

Comments

@anchuanyuan
Copy link

整体很强大 有个问题是 有些列fixed后单选 多选使用 ]提供colum列兼容后 把chekc列也fixed 选中的行会错行显示 如果不fixed 这一列又无法固定在开头

@xiaocheng555
Copy link
Owner

整体很强大 有个问题是 有些列fixed后单选 多选使用 ]提供colum列兼容后 把chekc列也fixed 选中的行会错行显示 如果不fixed 这一列又无法固定在开头

我试了没有这种情况,有具体的图和组件是怎么用的吗

@anchuanyuan
Copy link
Author

哦 不好意思 我又尝试了一下 上面说的不太对 是因为当你把鼠标放在fixed列进行滚动的时候 会显得非常卡顿 当如果你在非fixed列没有这个问题 我觉的需要关闭这个issues 重新开另一个issuse 方便你解决 关于鼠标在fiedx列卡顿问题

@xiaocheng555
Copy link
Owner

哦 不好意思 我又尝试了一下 上面说的不太对 是因为当你把鼠标放在fixed列进行滚动的时候 会显得非常卡顿 当如果你在非fixed列没有这个问题 我觉的需要关闭这个issues 重新开另一个issuse 方便你解决 关于鼠标在fiedx列卡顿问题

哦 不好意思 我又尝试了一下 上面说的不太对 是因为当你把鼠标放在fixed列进行滚动的时候 会显得非常卡顿 当如果你在非fixed列没有这个问题 我觉的需要关闭这个issues 重新开另一个issuse 方便你解决 关于鼠标在fiedx列卡顿问题

你看看这个demo会不会也出现你说的问题:
https://xiaocheng555.github.io/el-table-virtual-scroll/#/FixedDemo?code=FixedDemo&codeTitle=%E5%9B%BA%E5%AE%9A%E8%A1%A8%E6%A0%BC

el-table-virtual-scroll组件包的是element-ui的table组件,fixed是table内的属性,左右固定都会多生成一个表格,可能你的表格也比较复杂,就会造成固定列那里滚动会卡,你可以先排查是什么原因导致的卡。

@xiaocheng555
Copy link
Owner

哦 不好意思 我又尝试了一下 上面说的不太对 是因为当你把鼠标放在fixed列进行滚动的时候 会显得非常卡顿 当如果你在非fixed列没有这个问题 我觉的需要关闭这个issues 重新开另一个issuse 方便你解决 关于鼠标在fiedx列卡顿问题

正常说,应该可以使用postion: sticky 来自己实现表格固定,这样就不会生成额外的table,表格内滚动和固定列里滚动也会在同一表格内,能解决你说的卡顿问题

晚点我试下能不能将postion: sticky 实现表格固定做到 组件内

image 具体可以看下element-plus的固定列

@xiaocheng555
Copy link
Owner

xiaocheng555 commented Jul 26, 2023

哦 不好意思 我又尝试了一下 上面说的不太对 是因为当你把鼠标放在fixed列进行滚动的时候 会显得非常卡顿 当如果你在非fixed列没有这个问题 我觉的需要关闭这个issues 重新开另一个issuse 方便你解决 关于鼠标在fiedx列卡顿问题

el-table-virtual-scroll@1.0.15 增加了自定义列的,可以试试
el-table-virtual-scroll@1.0.15 有点bug,在el-table-virtual-scroll@1.0.16修复了

image 参考demo:https://xiaocheng555.github.io/el-table-virtual-scroll/#/VFixedDemo?code=VFixedDemo&codeTitle=%E5%9B%BA%E5%AE%9A%E5%88%97%EF%BC%88%E8%87%AA%E5%AE%9A%E4%B9%89%EF%BC%89

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

No branches or pull requests

2 participants