ant-design-mini icon indicating copy to clipboard operation
ant-design-mini copied to clipboard

popup 组件支持内容a:show而不是a:if

Open shuizhongxiong opened this issue 2 years ago • 2 comments

背景

popup 弹窗内容是一个无线滚动列表,当滚动了100+条数据后,点击关闭后,页面直接卡死,过一会才会正常交互。

期望 & 思路

目前想到的办法是,将 a:if 改成 a:show 问题是可以解决的,希望组件能支持。当然,如果有更好的办法也可以哈~

shuizhongxiong avatar Sep 13 '22 08:09 shuizhongxiong

你可以在picker里面content自己用 a:if 的

Alpsli avatar Sep 13 '22 08:09 Alpsli

你可以在picker里面content自己用 a:if 的

我自己 a:If 没用,因为组件外层用的还是 a:if,现在的问题是 a:if 里如果有很多 view 的时候,状态切换页面会卡住,该用 a:show 才可以。

shuizhongxiong avatar Oct 10 '22 03:10 shuizhongxiong

#495

wyj580231 avatar Jan 05 '23 08:01 wyj580231

#305 使用1.0没有这个问题,1.0里添加了destroyOnClose https://ant-design-mini.antgroup.com/components/popup

jc9702507 avatar Jan 13 '23 09:01 jc9702507