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

强制更新列表不行 #59

Closed
Purpledayer opened this issue Mar 26, 2024 · 13 comments
Closed

强制更新列表不行 #59

Purpledayer opened this issue Mar 26, 2024 · 13 comments

Comments

@Purpledayer
Copy link

const waterfall = ref(null)
waterfall.value.renderer()

这个更新方法不管用呀,waterfall.value 下面没有renderer这个函数是怎么回事?

@heikaimu
Copy link
Owner

heikaimu commented Mar 26, 2024 via email

@Purpledayer
Copy link
Author

Purpledayer commented Mar 26, 2024


<template #item="data">


<listCom v-else :data="data.item" @reenderFun="reenderFun">

const waterfall:any = ref(null);

const reenderFun=()=>{
console.log( waterfall.value);
}
就这样呀,这样不行么

@heikaimu
Copy link
Owner

heikaimu commented Mar 26, 2024 via email

@Purpledayer
Copy link
Author

是的 而且打印出来也没有这个方法
1
2

@heikaimu
Copy link
Owner

heikaimu commented Mar 26, 2024 via email

@Purpledayer
Copy link
Author

image
外部的按钮手动触发结果还是一样的

@Purpledayer
Copy link
Author

只有2.4.2版本有这个方法????别的都没啊??

@heikaimu
Copy link
Owner

你下载的哪个版本

@heikaimu
Copy link
Owner

我这边安装了一个最新的 2.4.3版本,也能成功的获取到这个方法。你这个我就有点儿搞不懂了。

@Purpledayer
Copy link
Author

最开始的2.2.2与最新的2.4.3版本都不行,我安装了2.4.2才行

@heikaimu
Copy link
Owner

你估计有缓存哦。2.4.3是肯定可以的。

@Purpledayer
Copy link
Author

我晚点再试试看2.4.3版本的

@zhlhuang
Copy link

我晚点再试试看2.4.3版本的

为什么我这边2.4.3也不行,打印有 renderer 方法

@heikaimu heikaimu closed this as completed Sep 3, 2024
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

3 participants