问题描述: 移动端前端页面拖拽刷新时,卡住不动 如图:
原因: 没写没有写下拉刷新功能插件响应所以一直在刷新
解决方式:需要写插件响应刷新事件
package kd.bos.debugserver; import kd.bos.form.RefreshResultType;
import kd.bos.form.plugin.AbstractMobFormPlugin;
import kd.bos.mvc.form.MobileFormView;
import java.util.EventObject; public class Test2Plugin extends AbstractMobFormPlugin {
@Override
public void afterCreateNewData(EventObject e) {
((MobileFormView) this.getView()).setRefreshResult("Success", 3000, RefreshResultType.Success); }
@Override
public void refreshData() {
boolean isSucess = true;
if (isSucess) {
((MobileFormView) this.getView()).setRefreshResult("刷新成功", 3000, RefreshResultType.Success); }
else {
((MobileFormView) this.getView()).setRefreshResult("刷新失败", 3000, RefreshResultType.Fail);
} } }
推荐阅读