|
|
@ -20206,10 +20206,16 @@ var _default = { |
|
|
|
// 列表是否需要下拉刷新
|
|
|
|
isPullDownRefresh: true, |
|
|
|
// 列表是否需要上拉加载
|
|
|
|
isReachBottomLoad: true |
|
|
|
isReachBottomLoad: true, |
|
|
|
// 额外返回出去的数据
|
|
|
|
extraData: { |
|
|
|
data: null, |
|
|
|
path: '' // 数据的路径
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
// 自定义onShow前会执行的函数
|
|
|
|
mixinFnBeforePageShow: function mixinFnBeforePageShow() { |
|
|
@ -20286,6 +20292,11 @@ var _default = { |
|
|
|
} else { |
|
|
|
_this.list = [].concat((0, _toConsumableArray2.default)(_this.list), (0, _toConsumableArray2.default)(resData)); |
|
|
|
} |
|
|
|
|
|
|
|
// 如果有额外数据的路径,刷新后,需要将额外数据也刷新
|
|
|
|
if (_this.mixinListConfig.extraData.path !== '') { |
|
|
|
_this.mixinListConfig.extraData.data = _this.resolvePath(res, _this.mixinListConfig.extraData.path); |
|
|
|
} |
|
|
|
} |
|
|
|
// 如果有在加载中
|
|
|
|
if (_this.isLoading) { |
|
|
|