first commit

This commit is contained in:
2026-02-23 16:31:39 +08:00
commit 8dcee4fadd
269 changed files with 45231 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// [z-paging]拦截器
//拦截&处理@query事件
function handleQuery(callback) {
try {
setTimeout(function() {
_getApp().globalData.zp_handleQueryCallback = callback;
}, 1);
} catch (e) {}
}
//拦截&处理@query事件(私有,请勿调用)
function _handleQuery(pageNo, pageSize, from){
const handleQueryCallback = _getApp().globalData.zp_handleQueryCallback;
if (handleQueryCallback) {
return handleQueryCallback(pageNo, pageSize, from);
}
return [pageNo, pageSize, from];
}
//获取当前app对象
function _getApp(){
// #ifndef APP-NVUE
return getApp();
// #endif
// #ifdef APP-NVUE
return getApp({allowDefault: true});
// #endif
}
export default {
handleQuery,
_handleQuery
};