@dcloudio/uni-app-plus 3.0.0-alpha-3061620221230001 → 3.0.0-alpha-3061620230106001

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.
@@ -13184,7 +13184,10 @@ function offThemeChange$1(callback) {
13184
13184
  UniServiceJSBridge.off(ON_THEME_CHANGE, callback);
13185
13185
  }
13186
13186
  function getNavigatorStyle() {
13187
- return plus.navigator.getUIStyle() === 'dark' ? 'light' : 'dark';
13187
+ return getTheme() === 'dark' ? 'light' : 'dark';
13188
+ }
13189
+ function getTheme() {
13190
+ return plus.navigator.getUIStyle();
13188
13191
  }
13189
13192
  function changePagesNavigatorStyle() {
13190
13193
  if (__uniConfig.darkmode) {
@@ -13651,7 +13654,7 @@ const getAppBaseInfo = defineSyncApi('getAppBaseInfo', () => {
13651
13654
  hostSDKVersion: undefined,
13652
13655
  language: osLanguage,
13653
13656
  SDKVersion: '',
13654
- theme: plus.navigator.getUIStyle(),
13657
+ theme: getTheme(),
13655
13658
  version: plus.runtime.innerVersion,
13656
13659
  };
13657
13660
  });
@@ -19494,6 +19497,11 @@ const preloadPage = defineAsyncApi(API_PRELOAD_PAGE, ({ url }, { resolve, reject
19494
19497
  path,
19495
19498
  query,
19496
19499
  });
19500
+ const routeOptions = initRouteOptions(path, 'preloadPage');
19501
+ const pageInstance = initPageInternalInstance('preloadPage', url, query, routeOptions.meta, undefined, (__uniConfig.darkmode
19502
+ ? plus.navigator.getUIStyle()
19503
+ : 'light'));
19504
+ createNVuePage(parseInt(webview.id), webview, pageInstance);
19497
19505
  resolve({
19498
19506
  id: webview.id,
19499
19507
  url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-plus",
3
- "version": "3.0.0-alpha-3061620221230001",
3
+ "version": "3.0.0-alpha-3061620230106001",
4
4
  "description": "@dcloudio/uni-app-plus",
5
5
  "files": [
6
6
  "dist",
@@ -28,11 +28,11 @@
28
28
  "main": "dist/uni.compiler.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3061620221230001",
32
- "@dcloudio/uni-components": "3.0.0-alpha-3061620221230001",
33
- "@dcloudio/uni-h5": "3.0.0-alpha-3061620221230001",
34
- "@dcloudio/uni-i18n": "3.0.0-alpha-3061620221230001",
35
- "@dcloudio/uni-shared": "3.0.0-alpha-3061620221230001",
31
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3061620230106001",
32
+ "@dcloudio/uni-components": "3.0.0-alpha-3061620230106001",
33
+ "@dcloudio/uni-h5": "3.0.0-alpha-3061620230106001",
34
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3061620230106001",
35
+ "@dcloudio/uni-shared": "3.0.0-alpha-3061620230106001",
36
36
  "@types/pako": "1.0.2",
37
37
  "@vue/compiler-sfc": "3.2.45",
38
38
  "autoprefixer": "^10.4.13",
@@ -41,7 +41,7 @@
41
41
  "vue": "3.2.45"
42
42
  },
43
43
  "dependencies": {
44
- "@dcloudio/uni-app-vite": "3.0.0-alpha-3061620221230001",
45
- "@dcloudio/uni-app-vue": "3.0.0-alpha-3061620221230001"
44
+ "@dcloudio/uni-app-vite": "3.0.0-alpha-3061620230106001",
45
+ "@dcloudio/uni-app-vue": "3.0.0-alpha-3061620230106001"
46
46
  }
47
47
  }