@dcloudio/uni-quickapp-webview 3.0.0-4000720240327002 → 3.0.0-4010420240430001
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 +2 -5
- package/dist/uni.mp.esm.js +5 -5
- package/package.json +7 -7
package/dist/uni.api.esm.js
CHANGED
|
@@ -384,11 +384,8 @@ function invokeSuccess(id, name, res) {
|
|
|
384
384
|
function invokeFail(id, name, errMsg, errRes = {}) {
|
|
385
385
|
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
|
|
386
386
|
delete errRes.errCode;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
? new UniError(name, errRes.errCode, apiErrMsg)
|
|
390
|
-
: new UniError(apiErrMsg, errRes)
|
|
391
|
-
: extend({ errMsg: apiErrMsg }, errRes));
|
|
387
|
+
let res = extend({ errMsg: apiErrMsg }, errRes);
|
|
388
|
+
return invokeCallback(id, res);
|
|
392
389
|
}
|
|
393
390
|
function beforeInvokeApi(name, args, protocol, options) {
|
|
394
391
|
if ((process.env.NODE_ENV !== 'production')) {
|
package/dist/uni.mp.esm.js
CHANGED
|
@@ -201,7 +201,7 @@ function parseApp(instance, parseAppOptions) {
|
|
|
201
201
|
}
|
|
202
202
|
const appOptions = {
|
|
203
203
|
globalData: (instance.$options && instance.$options.globalData) || {},
|
|
204
|
-
$vm: instance,
|
|
204
|
+
$vm: instance, // mp-alipay 组件 data 初始化比 onLaunch 早,提前挂载
|
|
205
205
|
onLaunch(options) {
|
|
206
206
|
this.$vm = instance; // 飞书小程序可能会把 AppOptions 序列化,导致 $vm 对象部分属性丢失
|
|
207
207
|
const ctx = internalInstance.ctx;
|
|
@@ -417,7 +417,7 @@ function initDefaultProps(options, isBehavior = false) {
|
|
|
417
417
|
}
|
|
418
418
|
if (options.behaviors) {
|
|
419
419
|
// wx://form-field
|
|
420
|
-
if (options.behaviors.includes('
|
|
420
|
+
if (options.behaviors.includes('__GLOBAL__://form-field')) {
|
|
421
421
|
if (!options.properties || !options.properties.name) {
|
|
422
422
|
properties.name = {
|
|
423
423
|
type: null,
|
|
@@ -596,7 +596,7 @@ function initBehaviors(vueOptions) {
|
|
|
596
596
|
const behaviors = [];
|
|
597
597
|
if (isArray(vueBehaviors)) {
|
|
598
598
|
vueBehaviors.forEach((behavior) => {
|
|
599
|
-
behaviors.push(behavior.replace('uni://', '
|
|
599
|
+
behaviors.push(behavior.replace('uni://', '__GLOBAL__://'));
|
|
600
600
|
if (behavior === 'uni://form-field') {
|
|
601
601
|
if (isArray(vueProps)) {
|
|
602
602
|
vueProps.push('name');
|
|
@@ -882,7 +882,7 @@ function initInjections(instance) {
|
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
// @ts-
|
|
885
|
+
// @ts-expect-error
|
|
886
886
|
function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
|
|
887
887
|
function attached() {
|
|
888
888
|
initSetRef(this);
|
|
@@ -904,7 +904,7 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
|
|
|
904
904
|
}, {
|
|
905
905
|
mpType,
|
|
906
906
|
mpInstance,
|
|
907
|
-
slots: properties.uS || {},
|
|
907
|
+
slots: properties.uS || {}, // vueSlots
|
|
908
908
|
parentComponent: relationOptions.parent && relationOptions.parent.$,
|
|
909
909
|
onBeforeSetup(instance, options) {
|
|
910
910
|
initRefs(instance, mpInstance);
|
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-4010420240430001",
|
|
4
4
|
"description": "uni-app quickapp-webview",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@dcloudio/uni-mp-compiler": "3.0.0-
|
|
28
|
+
"@dcloudio/uni-mp-compiler": "3.0.0-4010420240430001"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@dcloudio/uni-cli-shared": "3.0.0-
|
|
32
|
-
"@dcloudio/uni-mp-vite": "3.0.0-
|
|
33
|
-
"@dcloudio/uni-mp-vue": "3.0.0-
|
|
34
|
-
"@dcloudio/uni-shared": "3.0.0-
|
|
35
|
-
"@vue/shared": "3.
|
|
31
|
+
"@dcloudio/uni-cli-shared": "3.0.0-4010420240430001",
|
|
32
|
+
"@dcloudio/uni-mp-vite": "3.0.0-4010420240430001",
|
|
33
|
+
"@dcloudio/uni-mp-vue": "3.0.0-4010420240430001",
|
|
34
|
+
"@dcloudio/uni-shared": "3.0.0-4010420240430001",
|
|
35
|
+
"@vue/shared": "3.4.21"
|
|
36
36
|
}
|
|
37
37
|
}
|