@dcloudio/uni-quickapp-webview 3.0.0-3070320230222002 → 3.0.0-3070820230322001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uni.api.esm.js +3 -3
- package/dist/uni.mp.esm.js +24 -11
- package/package.json +5 -5
package/dist/uni.api.esm.js
CHANGED
|
@@ -1172,11 +1172,11 @@ var shims = /*#__PURE__*/Object.freeze({
|
|
|
1172
1172
|
|
|
1173
1173
|
var protocols = /*#__PURE__*/Object.freeze({
|
|
1174
1174
|
__proto__: null,
|
|
1175
|
-
|
|
1175
|
+
getSystemInfo: getSystemInfo,
|
|
1176
|
+
getSystemInfoSync: getSystemInfoSync,
|
|
1176
1177
|
navigateTo: navigateTo,
|
|
1177
1178
|
previewImage: previewImage,
|
|
1178
|
-
|
|
1179
|
-
getSystemInfoSync: getSystemInfoSync
|
|
1179
|
+
redirectTo: redirectTo
|
|
1180
1180
|
});
|
|
1181
1181
|
|
|
1182
1182
|
var index = initUni(shims, protocols);
|
package/dist/uni.mp.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SLOT_DEFAULT_NAME, EventChannel, invokeArrayFns, ON_LOAD, ON_SHOW, ON_HIDE, ON_UNLOAD, ON_RESIZE, ON_TAB_ITEM_TAP, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH, ON_ADD_TO_FAVORITES,
|
|
1
|
+
import { SLOT_DEFAULT_NAME, EventChannel, invokeArrayFns, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, ON_LOAD, ON_SHOW, ON_HIDE, ON_UNLOAD, ON_RESIZE, ON_TAB_ITEM_TAP, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH, ON_ADD_TO_FAVORITES, isUniLifecycleHook, ON_READY, once, ON_LAUNCH, ON_ERROR, ON_THEME_CHANGE, ON_PAGE_NOT_FOUND, ON_UNHANDLE_REJECTION, addLeadingSlash, stringifyQuery, customizeEvent } from '@dcloudio/uni-shared';
|
|
2
2
|
import { isArray, hasOwn, isFunction, extend, isPlainObject, isObject } from '@vue/shared';
|
|
3
3
|
import { ref, nextTick, findComponentPropsData, toRaw, updateProps, hasQueueJob, invalidateJob, devtoolsComponentAdded, getExposeProxy, pruneComponentPropsCache } from 'vue';
|
|
4
4
|
import { normalizeLocale, LOCALE_EN } from '@dcloudio/uni-i18n';
|
|
@@ -726,9 +726,16 @@ const MPPage = Page;
|
|
|
726
726
|
const MPComponent = Component;
|
|
727
727
|
function initTriggerEvent(mpInstance) {
|
|
728
728
|
const oldTriggerEvent = mpInstance.triggerEvent;
|
|
729
|
-
|
|
729
|
+
const newTriggerEvent = function (event, ...args) {
|
|
730
730
|
return oldTriggerEvent.apply(mpInstance, [customizeEvent(event), ...args]);
|
|
731
731
|
};
|
|
732
|
+
// 京东小程序triggerEvent为只读属性
|
|
733
|
+
try {
|
|
734
|
+
mpInstance.triggerEvent = newTriggerEvent;
|
|
735
|
+
}
|
|
736
|
+
catch (error) {
|
|
737
|
+
mpInstance._triggerEvent = newTriggerEvent;
|
|
738
|
+
}
|
|
732
739
|
}
|
|
733
740
|
function initMiniProgramHook(name, options, isComponent) {
|
|
734
741
|
const oldHook = options[name];
|
|
@@ -877,6 +884,12 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
|
|
|
877
884
|
if (mpType === 'component') {
|
|
878
885
|
initFormField(this.$vm);
|
|
879
886
|
}
|
|
887
|
+
if (mpType === 'page') {
|
|
888
|
+
if (__VUE_OPTIONS_API__) {
|
|
889
|
+
initInjections(this.$vm);
|
|
890
|
+
initProvide(this.$vm);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
880
893
|
// 处理父子关系
|
|
881
894
|
initRelation(this, relationOptions);
|
|
882
895
|
}
|
|
@@ -989,22 +1002,22 @@ function handleLink({ detail: { nodeId, webviewId }, }) {
|
|
|
989
1002
|
|
|
990
1003
|
var parseComponentOptions = /*#__PURE__*/Object.freeze({
|
|
991
1004
|
__proto__: null,
|
|
992
|
-
initRelation: initRelation,
|
|
993
1005
|
handleLink: handleLink,
|
|
994
|
-
|
|
1006
|
+
initLifetimes: initLifetimes$1,
|
|
1007
|
+
initRelation: initRelation,
|
|
995
1008
|
isPage: isPage,
|
|
996
|
-
|
|
997
|
-
|
|
1009
|
+
mocks: mocks,
|
|
1010
|
+
parse: parse
|
|
998
1011
|
});
|
|
999
1012
|
|
|
1000
1013
|
var parsePageOptions = /*#__PURE__*/Object.freeze({
|
|
1001
1014
|
__proto__: null,
|
|
1002
|
-
mocks: mocks,
|
|
1003
|
-
isPage: isPage,
|
|
1004
|
-
initRelation: initRelation,
|
|
1005
1015
|
handleLink: handleLink,
|
|
1006
|
-
|
|
1007
|
-
|
|
1016
|
+
initLifetimes: initLifetimes,
|
|
1017
|
+
initRelation: initRelation,
|
|
1018
|
+
isPage: isPage,
|
|
1019
|
+
mocks: mocks,
|
|
1020
|
+
parse: parse
|
|
1008
1021
|
});
|
|
1009
1022
|
|
|
1010
1023
|
const createApp = initCreateApp();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-quickapp-webview",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-3070820230322001",
|
|
4
4
|
"description": "uni-app quickapp-webview",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@vue/compiler-core": "3.2.47"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dcloudio/uni-cli-shared": "3.0.0-
|
|
33
|
-
"@dcloudio/uni-mp-vite": "3.0.0-
|
|
34
|
-
"@dcloudio/uni-mp-vue": "3.0.0-
|
|
35
|
-
"@dcloudio/uni-shared": "3.0.0-
|
|
32
|
+
"@dcloudio/uni-cli-shared": "3.0.0-3070820230322001",
|
|
33
|
+
"@dcloudio/uni-mp-vite": "3.0.0-3070820230322001",
|
|
34
|
+
"@dcloudio/uni-mp-vue": "3.0.0-3070820230322001",
|
|
35
|
+
"@dcloudio/uni-shared": "3.0.0-3070820230322001",
|
|
36
36
|
"@vue/shared": "3.2.47"
|
|
37
37
|
}
|
|
38
38
|
}
|