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

list 嵌入 c-refresh 提示参数校验失败 #2

Closed
LgdMagic opened this issue Jan 24, 2019 · 1 comment
Closed

list 嵌入 c-refresh 提示参数校验失败 #2

LgdMagic opened this issue Jan 24, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@LgdMagic
Copy link

<list
      bottom-offset="{{bottomOffset}}"
      c-bind:scrolltobottom="onBottom"
      c-bind:onscroll="onScroll"
      height="{{winHeight}}"
    >
    <c-refresh
        display="{{ topRefreshing }}"
        c-bind:refreshevent="onrefreshUp"
        >
    </c-refresh>
</list>
methods = {
    onrefreshUp (e) {
      this.topRefreshing = e.detail.value
      setTimeout(() => {
        this.topRefreshing = false
      }, 2000)
    },
   `onScroll(e)` {
      let scrollTop = e.detail.scrollTop;
      if (scrollTop <= 0) {
        this.topRefreshing = true;
      }
    }
}

 "dependencies": {
    "chameleon-api": "0.0.16",
    "chameleon-bridge": "0.0.10",
    "chameleon-runtime": "0.0.3",
    "chameleon-store": "0.0.3",
    "chameleon-ui-builtin": "0.0.4",
    "cml-ui": "0.0.3"
  }

报错信息
文件位置: /Users/macliu/Desktop/FirstChameleonTest/node_modules/chameleon-ui-builtin/components/list/list.interface
错误信息: event onscroll detail 参数校验失败
定义了Number类型的参数,传入的却是Promise,请检查所传参数是否和接口定义的一致

@beatles-chameleon
Copy link
Collaborator

请升级chameleon-api到0.1.0版本,在项目根目录下执行npm install -S chameleon-api@0.1.0

@MicroConan MicroConan added the bug Something isn't working label Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants