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

table 列自渲染的时候,表格左右滚动会重新触发 循环方法 #2927

Open
wghzyy opened this issue Jan 18, 2024 · 6 comments · May be fixed by #2953
Open

table 列自渲染的时候,表格左右滚动会重新触发 循环方法 #2927

wghzyy opened this issue Jan 18, 2024 · 6 comments · May be fixed by #2953
Labels

Comments

@wghzyy
Copy link

wghzyy commented Jan 18, 2024

1 我列是自渲染的,会有一个方法来查询转换字段。比如返回值是 1,2,3 我会用一个方法转换 4 5 6 但是发现拖动的时候 会频繁处罚这个功能。
<template #columns>

这个插槽里面

@wghzyy
Copy link
Author

wghzyy commented Jan 18, 2024

版本 2.54.2

@oljc
Copy link
Member

oljc commented Jan 19, 2024

@wghzyy 你好,可以提供一下复现地址吗

@flsion flsion added the status: need more info Need more info label Jan 19, 2024
@wghzyy
Copy link
Author

wghzyy commented Jan 20, 2024

https://stackblitz.com/edit/nnf5sz?file=src%2FApp.vue 复现地址。注意观察随机数那一列。一直再不断变化 其实表格里面的数据 不更新的情况下 不应该触发更新的 我tabledata 并未更新。v-once 我也试过 在标签里没用。所以这也是造成table 比较卡的一个原因 希望能重视哈

@wghzyy
Copy link
Author

wghzyy commented Jan 22, 2024

能解决吗?

@guo0588
Copy link

guo0588 commented Jan 22, 2024

react 版本是好的 ,vue确实会出现这个问题,导致页面卡顿。

@wghzyy
Copy link
Author

wghzyy commented Jan 22, 2024

希望赶紧解决一下吧 这个问题 有点头疼。项目在线上跑

@Loongphy Loongphy linked a pull request Jan 28, 2024 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants