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

瀑布流组件自动删除渲染节点 #1552

Open
ab164287643 opened this issue Nov 9, 2022 · 1 comment
Open

瀑布流组件自动删除渲染节点 #1552

ab164287643 opened this issue Nov 9, 2022 · 1 comment
Labels
Bug 该 Issue 提出了一个 Bug

Comments

@ab164287643
Copy link

ab164287643 commented Nov 9, 2022

设备型号:

LinUI 版本:

微信小程序基础库版本:

微信开发者工具版本:

问题描述及重现步骤:
比如有首页和列表页,
首页调用下面代码渲染数据,正常渲染

wx.lin.renderWaterFlow(res.data.rows, isClear ,()=>{
            console.log('渲染成功')
       })

然后进入列表页,调用以下代码会导致回到首页后,首页的渲染节点被干掉了

wx.lin.renderWaterFlow([], isClear ,()=>{
            console.log('渲染成功')
          })

相关截图
下面图片按照步骤截图
image
image
image

@ab164287643 ab164287643 added the Bug 该 Issue 提出了一个 Bug label Nov 9, 2022
@smileShirmy
Copy link
Member

smileShirmy commented Nov 13, 2022

wx.lin.renderWaterFlow() 支持传入三个参数,第一个参数为 data 即为传入的数据信息,第二个参数为refresh为是否刷新数据(删除之前渲染的数据,重新渲染)。

可以检查一下 isClear 参数是否为 true 如果是的话就会删除之前渲染的数据重新渲染

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 该 Issue 提出了一个 Bug
Projects
None yet
Development

No branches or pull requests

2 participants