@dcloudio/uni-app-plus 3.0.0-alpha-3021320211117005 → 3.0.0-alpha-3021320211119002

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.
@@ -1040,7 +1040,7 @@ var serviceContext = (function (vue) {
1040
1040
  }
1041
1041
  return interceptor;
1042
1042
  }
1043
- function invokeApi(method, api, options, ...params) {
1043
+ function invokeApi(method, api, options, params) {
1044
1044
  const interceptor = getApiInterceptorHooks(method);
1045
1045
  if (interceptor && Object.keys(interceptor).length) {
1046
1046
  if (isArray$1(interceptor.invoke)) {
@@ -1074,12 +1074,12 @@ var serviceContext = (function (vue) {
1074
1074
  return promise;
1075
1075
  }
1076
1076
  function promisify(name, fn) {
1077
- return (args = {}) => {
1077
+ return (args = {}, ...rest) => {
1078
1078
  if (hasCallback(args)) {
1079
- return wrapperReturnValue(name, invokeApi(name, fn, args));
1079
+ return wrapperReturnValue(name, invokeApi(name, fn, args, rest));
1080
1080
  }
1081
1081
  return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
1082
- invokeApi(name, fn, extend(args, { success: resolve, fail: reject }));
1082
+ invokeApi(name, fn, extend(args, { success: resolve, fail: reject }), rest);
1083
1083
  })));
1084
1084
  };
1085
1085
  }
@@ -10039,16 +10039,18 @@ var serviceContext = (function (vue) {
10039
10039
  }
10040
10040
  });
10041
10041
  if (mpType === 'page') {
10042
+ instance.__isVisible = true;
10042
10043
  try {
10043
10044
  invokeHook(publicThis, ON_LOAD, instance.attrs.__pageQuery);
10044
- vue.nextTick(() => {
10045
- // 延迟onShow,保证组件的onShow也可以监听到
10046
- invokeHook(publicThis, ON_SHOW);
10047
- });
10045
+ delete instance.attrs.__pageQuery;
10048
10046
  }
10049
10047
  catch (e) {
10050
10048
  console.error(e.message + LINEFEED + e.stack);
10051
10049
  }
10050
+ vue.nextTick(() => {
10051
+ // 延迟onShow,保证组件的onShow也可以监听到
10052
+ invokeHook(publicThis, ON_SHOW);
10053
+ });
10052
10054
  }
10053
10055
  }
10054
10056
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-plus",
3
- "version": "3.0.0-alpha-3021320211117005",
3
+ "version": "3.0.0-alpha-3021320211119002",
4
4
  "description": "@dcloudio/uni-app-plus",
5
5
  "files": [
6
6
  "dist",
@@ -28,16 +28,16 @@
28
28
  "main": "dist/uni.compiler.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@dcloudio/uni-components": "3.0.0-alpha-3021320211117005",
32
- "@dcloudio/uni-h5": "3.0.0-alpha-3021320211117005",
33
- "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211117005",
34
- "@dcloudio/uni-shared": "3.0.0-alpha-3021320211117005",
31
+ "@dcloudio/uni-components": "3.0.0-alpha-3021320211119002",
32
+ "@dcloudio/uni-h5": "3.0.0-alpha-3021320211119002",
33
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211119002",
34
+ "@dcloudio/uni-shared": "3.0.0-alpha-3021320211119002",
35
35
  "@vue/compiler-sfc": "3.2.22",
36
36
  "autoprefixer": "^10.4.0",
37
37
  "vue": "3.2.22"
38
38
  },
39
39
  "dependencies": {
40
- "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211117005",
41
- "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211117005"
40
+ "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211119002",
41
+ "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211119002"
42
42
  }
43
43
  }