diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 195dcc9b2e08c009c30fad94fba953fbed8d1eee..0eaf3ffd06545efe4c6d10d107496f46f978fd5b 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -517,24 +517,6 @@ return res; }, {}); } - const initI18nShowModalMsgsOnce = /* @__PURE__ */ once(() => { - const name = "uni.showModal."; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, { cancel: "Cancel", confirm: "OK" })); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, { cancel: "Cancelar", confirm: "OK" })); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, { cancel: "Annuler", confirm: "OK" })); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, { cancel: "\u53D6\u6D88", confirm: "\u786E\u5B9A" })); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, { cancel: "\u53D6\u6D88", confirm: "\u78BA\u5B9A" })); - } - }); const initI18nButtonMsgsOnce = /* @__PURE__ */ once(() => { const name = "uni.button."; { @@ -5397,7 +5379,6 @@ } return res; } - [ON_PAGE_SCROLL, ON_REACH_BOTTOM]; const VD_SYNC = "vdSync"; const ON_WEBVIEW_READY = "onWebviewReady"; const INVOKE_VIEW_API = "invokeViewApi"; @@ -5700,30 +5681,6 @@ }, Upx2pxProtocol); createCallbacks("canvasEvent"); createCallbacks("getSelectedTextRangeEvent"); - ({ - beforeInvoke() { - initI18nShowModalMsgsOnce(); - }, - formatArgs: { - title: "", - content: "", - showCancel: true, - cancelText(_value, params) { - if (!hasOwn$1(params, "cancelText")) { - const { t: t2 } = useI18n(); - params.cancelText = t2("uni.showModal.cancel"); - } - }, - cancelColor: "#000", - confirmText(_value, params) { - if (!hasOwn$1(params, "confirmText")) { - const { t: t2 } = useI18n(); - params.confirmText = t2("uni.showModal.confirm"); - } - }, - confirmColor: PRIMARY_COLOR - } - }); function invokeServiceApi(method, args = {}) { UniViewJSBridge.publishHandler(INVOKE_SERVICE_API, { data: { diff --git a/packages/uni-mp-alipay/dist/uni.mp.esm.js b/packages/uni-mp-alipay/dist/uni.mp.esm.js index 635d23bee62710755d97453355a33bb77934913e..b9a74f7d116de75c39916474587f3fca389c1d65 100644 --- a/packages/uni-mp-alipay/dist/uni.mp.esm.js +++ b/packages/uni-mp-alipay/dist/uni.mp.esm.js @@ -1,4 +1,4 @@ -import { hasOwn, isArray, toNumber, isPlainObject, isObject, capitalize, isFunction, extend, NOOP, EMPTY_OBJ, camelize } from '@vue/shared'; +import { capitalize, hasOwn, isArray, toNumber, isPlainObject, isObject, isFunction, extend, NOOP, EMPTY_OBJ, camelize } from '@vue/shared'; function setModel(target, key, value, modifiers) { if (isArray(modifiers)) { diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index 63c972dbaa089002259e69b3e23713b641af6925..22e73932ff26301e727a504c0e239833f60c3956 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -1,4 +1,4 @@ -import { isFunction, isSymbol, extend, isMap, isObject, toRawType, def, isArray, isString, isPromise, toHandlerKey, remove, EMPTY_OBJ, camelize, capitalize, normalizeClass, normalizeStyle, isOn, NOOP, isGloballyWhitelisted, isIntegerKey, hasOwn, hasChanged, invokeArrayFns as invokeArrayFns$1, makeMap, isSet, NO, toNumber, hyphenate, isReservedProp, EMPTY_ARR, toTypeString } from '@vue/shared'; +import { isFunction, isSymbol, extend, isMap, isObject, toRawType, def, isArray, isString, isPromise, toHandlerKey, remove, EMPTY_OBJ, camelize, capitalize, normalizeClass, normalizeStyle, isOn, NOOP, isGloballyWhitelisted, isIntegerKey, hasOwn, hasChanged, NO, invokeArrayFns as invokeArrayFns$1, makeMap, isSet, toNumber, hyphenate, isReservedProp, EMPTY_ARR, toTypeString } from '@vue/shared'; export { camelize } from '@vue/shared'; import { injectHook as injectHook$1 } from 'vue'; diff --git a/packages/uni-shared/dist/uni-shared.d.ts b/packages/uni-shared/dist/uni-shared.d.ts index 771e7d3af8dab9ed543db8b6ca124dbd58d9d823..c849db535a2a0383ef65f21168b83e08f08da1da 100644 --- a/packages/uni-shared/dist/uni-shared.d.ts +++ b/packages/uni-shared/dist/uni-shared.d.ts @@ -28,10 +28,10 @@ export declare const ACTION_TYPE_SET_TEXT = 10; * flag */ export declare type AddEventAction = [ -typeof ACTION_TYPE_ADD_EVENT, -number, -string | number, -number + typeof ACTION_TYPE_ADD_EVENT, + number, + string | number, + number ]; export declare function addFont(family: string, source: string, desc?: FontFaceDescriptors): Promise; @@ -68,11 +68,11 @@ export declare const COMPONENT_SELECTOR_PREFIX = "uni-"; * nodeJson */ export declare type CreateAction = [ -typeof ACTION_TYPE_CREATE, -number, -string | number, -number, -Partial? + typeof ACTION_TYPE_CREATE, + number, + string | number, + number, + Partial? ]; export declare function createRpx2Unit(unit: string, unitRatio: number, unitPrecision: number): (val: string) => string; @@ -313,9 +313,9 @@ export declare type RemoveAction = [typeof ACTION_TYPE_REMOVE, number]; * name */ export declare type RemoveAttributeAction = [ -typeof ACTION_TYPE_REMOVE_ATTRIBUTE, -number, -string | number + typeof ACTION_TYPE_REMOVE_ATTRIBUTE, + number, + string | number ]; /** @@ -323,9 +323,9 @@ string | number * event */ export declare type RemoveEventAction = [ -typeof ACTION_TYPE_REMOVE_EVENT, -number, -string | number + typeof ACTION_TYPE_REMOVE_EVENT, + number, + string | number ]; export declare function removeLeadingSlash(str: string): string; @@ -349,10 +349,10 @@ export declare const SELECTED_COLOR = "#0062cc"; * value */ export declare type SetAttributeAction = [ -typeof ACTION_TYPE_SET_ATTRIBUTE, -number, -string | number, -unknown | number + typeof ACTION_TYPE_SET_ATTRIBUTE, + number, + string | number, + unknown | number ]; /** @@ -360,9 +360,9 @@ unknown | number * text */ export declare type SetTextAction = [ -typeof ACTION_TYPE_SET_TEXT, -number, -string | number + typeof ACTION_TYPE_SET_TEXT, + number, + string | number ]; export declare function stringifyQuery(obj?: Record, encodeStr?: typeof encodeURIComponent): string;