Code Monkey home page Code Monkey logo

wapp_refreshview's Introduction

wapp_refreshView

一个在微信小程序中使用的上下拉刷新组件

小程序代码片段: wechatide://minicode/Iw0WABm37T2P

效果: Alt text

参数:

参数名 类型 说明
custom-class 自定义样式class-name 自定义样式
refresh boolean 是否需要刷新
loadMore boolean 是否需要加载更多
length number 数据长度
emptyText string 数据为空时的提示
noMore boolean 是否没有更多了
noMoreText string 没有更多数据时的提示
bind:onLoadMore 回调 刷新时回调
bind:onRefresh 回调 加载更多时回调
例:刷新&加载更多
onRefresh:function(e){
    var callback = e.detail;
    setTimeout(function(){
	callback.success();
    },3000)
},
onLoadMore: function (e) {
    var callback = e.detail;
    setTimeout(function () {
	callback.fail();
    }, 3000)
},

wapp_refreshview's People

Contributors

dyl169 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.