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

Slide 不支持 items 动态变化 #227

Open
1 task done
z810276431 opened this issue Jul 2, 2018 · 5 comments
Open
1 task done

Slide 不支持 items 动态变化 #227

z810276431 opened this issue Jul 2, 2018 · 5 comments

Comments

@z810276431
Copy link
Contributor

请按照以下模板填写

这是一个

  • 错误报告

SaltUI 版本 ,3.9.13

##谷歌浏览器

复现步骤

官网文档的例子中,懒加载使用选项,如果返回的数据是2条,则左右滑动js报错,而且如果返回的数据为空集合时,页面显示一直是加载中的状态

@eternalsky
Copy link
Contributor

eternalsky commented Jul 3, 2018

请给出 codePen demo,https://codepen.io/eternalsky/pen/WpzYrv

@z810276431
Copy link
Contributor Author

z810276431 commented Jul 3, 2018

我用的就是官方文档上面的懒加载例子,在例子上面直接操作的
https://codepen.io/z810276431/pen/pKYxdO

@z810276431
Copy link
Contributor Author

能不能回一下啊,3q

@eternalsky
Copy link
Contributor

eternalsky commented Jul 4, 2018

Slide 目前无法处理 children 只有 1个的情况,目前临时的解决办法,你可以等轮播的内容被载入之后再渲染 Slide。

========

目前 Slide 在动态切换items 数量的情况下,确实有问题,这个比较难解决,最近这周会再看下,目前推荐的方案是先用其他元素占位,等到数据获取到之后再渲染 Slide

eternalsky added a commit that referenced this issue Jul 5, 2018
@z810276431
Copy link
Contributor Author

好的,期待更新

@eternalsky eternalsky changed the title Slide组件的问题 Slide 不支持 items 动态变化 Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants