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

组件scroller的事件on-scroll不响应(官网的例子) #933

Closed
lounai-chen opened this issue Feb 16, 2017 · 6 comments
Closed

组件scroller的事件on-scroll不响应(官网的例子) #933

lounai-chen opened this issue Feb 16, 2017 · 6 comments

Comments

@lounai-chen
Copy link

lounai-chen commented Feb 16, 2017

Version 2.x

Android or iOS 谷歌浏览器

For Android issues, please specify the brand, model and browser

Your Codes

    <divider>'A Vertical Scroller'- scrollTop: {{scrollTop}}</divider>
    <scroller lock-x height="200px" @on-scroll="onScroll">
      <div class="box2">
        <p v-for="i in 80">placeholder {{i}}</p>
      </div>
    </scroller>
<!--put your code here-->
  methods: {
    onScroll (pos) {
      debugger
      console.log('on scroll', pos)
      this.scrollTop = pos.top
    },
    onCellClick () {
      window.alert('cell click')
    },
    onClickButton () {
      window.alert('click')
    },
    changeList () {
      this.showList1 = false
      this.$nextTick(() => {
        this.$refs.scroller.reset({
          top: 0
        })
      })
    }
  }

image

Expected behavior and actual behavior.

Steps to reproduce the problem

@airyland
Copy link
Owner

version 1.0 是什么鬼?

@airyland
Copy link
Owner

只有0.x或者2.x版本,0.x没有该事件。

@lounai-chen
Copy link
Author

是最新的vux版本

@lounai-chen
Copy link
Author

第一次提问题,以为那version是我提问题的版本

@lounai-chen
Copy link
Author

还请大神指导

@airyland
Copy link
Owner

本地无法重现。提供版本号请具体到精确的版本号。

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