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

加上指令后滚动条不出现,可以滚动,还有大概率根本不出现,采用vue2.2.6 #11

Open
GarveyZuo opened this issue Aug 25, 2017 · 5 comments

Comments

@GarveyZuo
Copy link

No description provided.

@MarxJiao
Copy link
Owner

看下iscroll相关的配置呢 https://github.com/cubiq/iscroll

@iq9891
Copy link

iq9891 commented Sep 19, 2017

如果是在v-for循环数据,最外层的div上加指令,那么子元素还没渲染完会获取不到高度,这个怎么解决

<div v-iscroll>
  <div>
    <p v-for="a in data"></p>
  </div>
</div>

@MarxJiao
Copy link
Owner

@iq9891 使用前是需要知道外层div的高度的,组件挂载之后才会生成iscorll实例

@iq9891
Copy link

iq9891 commented Sep 19, 2017

iscroll.refresh方法神似不管用。
通过改变多选状态,显示隐藏一块内容,通过在多选绑定change事件,里面调用iscroll.refresh,总是刷新的是上一次状态的高度。这个怎么解决

@MarxJiao
Copy link
Owner

@iq9891 不在外面调用iscroll.refresh呢,指令内部自动调用了iscroll。实在不行的话,就用setTimeout,时间设为0。

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