提交 ae73c41b 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 73cf6ffd
......@@ -1521,10 +1521,11 @@ function invokeSuccess(id, name, res) {
}
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ":fail" + (errMsg ? " " + errMsg : "");
return invokeCallback(
id,
typeof UniError !== "undefined" ? typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes) : shared.extend({ errMsg: apiErrMsg }, errRes)
);
let res = shared.extend({ errMsg: apiErrMsg }, errRes);
if (typeof UniError !== "undefined") {
res = typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes);
}
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if (process.env.NODE_ENV !== "production") {
......@@ -3401,13 +3402,9 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state, emit2, trigger) {
const valueChangeFn = uniShared.debounce(
(val) => {
state.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
const valueChangeFn = throttle((val) => {
state.value = getValueString(val, props2.type);
}, 100);
vue.watch(() => props2.modelValue, valueChangeFn);
vue.watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
......@@ -8734,16 +8731,17 @@ function initRouter(app) {
app.router = router;
app.use(router);
}
const scrollBehavior = (_to, _from, savedPosition) => {
if (savedPosition) {
return savedPosition;
}
};
function createRouterOptions() {
return {
history: initHistory(),
strict: !!__uniConfig.router.strict,
routes: __uniRoutes
/**
* 传入scrollBehavior后,vue-router会将history.scrollRestoration设为manual。
* 导致safari无法保留上一页面的截图,进而导致在iOS手势返回期间上一页面处于白屏状态
*/
// scrollBehavior,
routes: __uniRoutes,
scrollBehavior
};
}
function initHistory() {
......
......@@ -3175,10 +3175,11 @@ function invokeSuccess(id2, name, res) {
}
function invokeFail(id2, name, errMsg, errRes = {}) {
const apiErrMsg = name + ":fail" + (errMsg ? " " + errMsg : "");
return invokeCallback(
id2,
typeof UniError !== "undefined" ? typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes) : extend({ errMsg: apiErrMsg }, errRes)
);
let res = extend({ errMsg: apiErrMsg }, errRes);
if (typeof UniError !== "undefined") {
res = typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes);
}
return invokeCallback(id2, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if (process.env.NODE_ENV !== "production") {
......@@ -9557,13 +9558,9 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state2, emit2, trigger) {
const valueChangeFn = debounce(
(val) => {
state2.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
const valueChangeFn = throttle((val) => {
state2.value = getValueString(val, props2.type);
}, 100);
watch(() => props2.modelValue, valueChangeFn);
watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
......@@ -17753,16 +17750,17 @@ function initRouter(app) {
app.router = router;
app.use(router);
}
const scrollBehavior = (_to, _from, savedPosition) => {
if (savedPosition) {
return savedPosition;
}
};
function createRouterOptions() {
return {
history: initHistory(),
strict: !!__uniConfig.router.strict,
routes: __uniRoutes
/**
* 传入scrollBehavior后,vue-router会将history.scrollRestoration设为manual。
* 导致safari无法保留上一页面的截图,进而导致在iOS手势返回期间上一页面处于白屏状态
*/
// scrollBehavior,
routes: __uniRoutes,
scrollBehavior
};
}
function removeCurrentPages(delta = 1) {
......
......@@ -1458,10 +1458,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ":fail" + (errMsg ? " " + errMsg : "");
delete errRes.errCode;
return invokeCallback(
id,
typeof UniError !== "undefined" ? typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes) : shared.extend({ errMsg: apiErrMsg }, errRes)
);
let res = shared.extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if (process.env.NODE_ENV !== "production") {
......@@ -3326,7 +3324,7 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state, emit2, trigger) {
const valueChangeFn = uniShared.debounce(
const valueChangeFn = debounce(
(val) => {
state.value = getValueString(val, props2.type);
},
......@@ -7932,16 +7930,17 @@ function initRouter(app) {
app.router = router;
app.use(router);
}
const scrollBehavior = (_to, _from, savedPosition) => {
if (savedPosition) {
return savedPosition;
}
};
function createRouterOptions() {
return {
history: initHistory(),
strict: !!__uniConfig.router.strict,
routes: __uniRoutes
/**
* 传入scrollBehavior后,vue-router会将history.scrollRestoration设为manual。
* 导致safari无法保留上一页面的截图,进而导致在iOS手势返回期间上一页面处于白屏状态
*/
// scrollBehavior,
routes: __uniRoutes,
scrollBehavior
};
}
function initHistory() {
......
import { withModifiers, createVNode, getCurrentInstance, ref, defineComponent, openBlock, createElementBlock, provide, computed, watch, onUnmounted, inject, onBeforeUnmount, mergeProps, injectHook, reactive, onActivated, onMounted, nextTick, onBeforeMount, withDirectives, vModelDynamic, vShow, shallowRef, watchEffect, isVNode, Fragment, markRaw, Comment, h, createTextVNode, createBlock, onBeforeActivate, onBeforeDeactivate, renderList, onDeactivated, createApp, isReactive, Transition, effectScope, withCtx, KeepAlive, resolveDynamicComponent, createElementVNode, normalizeStyle, renderSlot } from "vue";
import { isArray, isString, extend, remove, stringifyStyle, parseStringStyle, isPlainObject, isFunction, capitalize, camelize, hasOwn, isObject, toRawType, makeMap as makeMap$1, isPromise, hyphenate, invokeArrayFns as invokeArrayFns$1 } from "@vue/shared";
import { once, UNI_STORAGE_LOCALE, I18N_JSON_DELIMITERS, Emitter, passive, initCustomDatasetOnce, resolveComponentInstance, normalizeStyles, addLeadingSlash, invokeArrayFns, removeLeadingSlash, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, LINEFEED, ON_ERROR, callOptions, ON_UNHANDLE_REJECTION, ON_PAGE_NOT_FOUND, PRIMARY_COLOR, getLen, debounce, isUniLifecycleHook, ON_LOAD, UniLifecycleHooks, invokeCreateErrorHandler, invokeCreateVueAppHook, parseQuery, NAVBAR_HEIGHT, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, ON_THEME_CHANGE, updateElementStyle, sortObject, OFF_THEME_CHANGE, ON_BACK_PRESS, parseUrl, addFont, ON_NAVIGATION_BAR_CHANGE, scrollTo, RESPONSIVE_MIN_WIDTH, onCreateVueApp, formatDateTime, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared";
import { once, UNI_STORAGE_LOCALE, I18N_JSON_DELIMITERS, Emitter, passive, initCustomDatasetOnce, resolveComponentInstance, normalizeStyles, addLeadingSlash, invokeArrayFns, removeLeadingSlash, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, LINEFEED, ON_ERROR, callOptions, ON_UNHANDLE_REJECTION, ON_PAGE_NOT_FOUND, PRIMARY_COLOR, getLen, isUniLifecycleHook, ON_LOAD, UniLifecycleHooks, invokeCreateErrorHandler, invokeCreateVueAppHook, parseQuery, NAVBAR_HEIGHT, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, debounce as debounce$1, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, ON_THEME_CHANGE, updateElementStyle, sortObject, OFF_THEME_CHANGE, ON_BACK_PRESS, parseUrl, addFont, ON_NAVIGATION_BAR_CHANGE, scrollTo, RESPONSIVE_MIN_WIDTH, onCreateVueApp, formatDateTime, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared";
import { onCreateVueApp as onCreateVueApp2 } from "@dcloudio/uni-shared";
import { initVueI18n, isI18nStr, LOCALE_EN, LOCALE_ES, LOCALE_FR, LOCALE_ZH_HANS, LOCALE_ZH_HANT } from "@dcloudio/uni-i18n";
import { useRoute, createRouter, createWebHistory, createWebHashHistory, useRouter, isNavigationFailure, RouterView } from "vue-router";
......@@ -3074,10 +3074,8 @@ function invokeSuccess(id2, name, res) {
function invokeFail(id2, name, errMsg, errRes = {}) {
const apiErrMsg = name + ":fail" + (errMsg ? " " + errMsg : "");
delete errRes.errCode;
return invokeCallback(
id2,
typeof UniError !== "undefined" ? typeof errRes.errCode !== "undefined" ? new UniError(name, errRes.errCode, apiErrMsg) : new UniError(apiErrMsg, errRes) : extend({ errMsg: apiErrMsg }, errRes)
);
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id2, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if (process.env.NODE_ENV !== "production") {
......@@ -15762,16 +15760,17 @@ function initRouter(app) {
app.router = router;
app.use(router);
}
const scrollBehavior = (_to, _from, savedPosition) => {
if (savedPosition) {
return savedPosition;
}
};
function createRouterOptions() {
return {
history: initHistory(),
strict: !!__uniConfig.router.strict,
routes: __uniRoutes
/**
* 传入scrollBehavior后,vue-router会将history.scrollRestoration设为manual。
* 导致safari无法保留上一页面的截图,进而导致在iOS手势返回期间上一页面处于白屏状态
*/
// scrollBehavior,
routes: __uniRoutes,
scrollBehavior
};
}
function removeCurrentPages(delta = 1) {
......@@ -16009,7 +16008,7 @@ function setupApp(comp) {
onMounted(() => {
window.addEventListener(
"resize",
debounce(onResize, 50, { setTimeout, clearTimeout })
debounce$1(onResize, 50, { setTimeout, clearTimeout })
);
window.addEventListener("message", onMessage);
document.addEventListener("visibilitychange", onVisibilityChange);
......@@ -20911,7 +20910,7 @@ const LoctaionPicker = /* @__PURE__ */ defineSystemComponent({
reset,
getList
} = useList(state2);
const search = debounce(() => {
const search = debounce$1(() => {
reset();
if (state2.keyword) {
getList();
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
......@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
function invokeFail(id, name, errMsg, errRes = {}) {
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
delete errRes.errCode;
return invokeCallback(id, typeof UniError !== 'undefined'
? typeof errRes.errCode !== 'undefined'
? new UniError(name, errRes.errCode, apiErrMsg)
: new UniError(apiErrMsg, errRes)
: extend({ errMsg: apiErrMsg }, errRes));
let res = extend({ errMsg: apiErrMsg }, errRes);
return invokeCallback(id, res);
}
function beforeInvokeApi(name, args, protocol, options) {
if ((process.env.NODE_ENV !== 'production')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册