dcloudio / dcloudio/mui

下拉刷新,上拉加载为什么一直报错?还有人维护?

Open
#475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13.5k
Forks
6.5k
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/31945098/51651671-d42a3680-1fc7-11e9-8a2c-78831a696068.png)
js代码:
mui.init({
pullRefresh : {
container:'#refreshContainer',//待刷新区域标识,querySelector能定位的css选择器均可,比如:id、.class等
down: {
style:'circle',
color:'#2BD009', //可选,默认“#2BD009” 下拉刷新控件颜色
auto: true,//可选,默认false.首次加载自动下拉刷新一次
contentdown : "下拉可以刷新",//可选,在下拉可刷新状态时,下拉刷新控件上显示的标题内容
contentover : "释放立即刷新",//可选,在释放可刷新状态时,下拉刷新控件上显示的标题内容
contentrefresh : "正在刷新...",//可选,正在刷新状态时,下拉刷新控件上显示的标题内容
callback: pullfresh_function,
},
up: {
height:50,//可选.默认50.触发上拉加载拖动距离
auto:false,//可选,默认false.自动上拉加载一次
contentrefresh : "正在加载...",//可选,正在加载状态时,上拉加载控件上显示的标题内容
contentnomore:'没有更多数据了',//可选,请求完毕若没有更多数据时显示的提醒内容;
callback :pullUpRefresh //必选,刷新函数,根据具体业务来编写,比如通过ajax从服务器获取新数据;
}
}
})

报错:
Uncaught TypeError: mui(...).pullRefresh(...).endPulldown is not a function
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.