Skip to content

当加载失败时,List组件显示加载失败,点击重试 #2567

@Rockergmail

Description

@Rockergmail

IMPORTANT: Please use the following link to create a new issue. If your issue was not created using the app above, it will be closed immediately.

注意:请按照下面的模板来新建 issue,不规范的 issue 会被立即关闭.

What problem does this feature solve?
当list的load事件失败时,提示用户加载失败,点击重新加载

Describe the solution you'd like
在load函数带一个参数,类似next方法,用户调用next方法,就不再执行check方法,除非用户点击重新加载

What does the proposed API look like?

@load="fetchSth"

methods: {
   fetchSth(handleError => {
      fetch("http://www.baidu.com").then(res => {
          // pass
      }).catch(err => {
         handleError();
      })
   })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions