@tarojs/router 4.0.0-alpha.30 → 4.0.0-alpha.32

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/index.cjs.js CHANGED
@@ -1707,7 +1707,8 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
1707
1707
  app.id = appId;
1708
1708
  isPosition = false;
1709
1709
  }
1710
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
1710
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1711
+ document.body.classList.add('taro-app-wrap');
1711
1712
  app.classList.add('taro_router');
1712
1713
  if (!isPosition)
1713
1714
  appWrapper.appendChild(app);
@@ -1721,7 +1722,8 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
1721
1722
  app.id = appId;
1722
1723
  isPosition = false;
1723
1724
  }
1724
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
1725
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1726
+ document.body.classList.add('taro-app-wrap');
1725
1727
  app.classList.add('taro_router');
1726
1728
  const container = document.createElement('div');
1727
1729
  container.classList.add('taro-tabbar__container');
package/dist/index.esm.js CHANGED
@@ -1706,7 +1706,8 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
1706
1706
  app.id = appId;
1707
1707
  isPosition = false;
1708
1708
  }
1709
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
1709
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1710
+ document.body.classList.add('taro-app-wrap');
1710
1711
  app.classList.add('taro_router');
1711
1712
  if (!isPosition)
1712
1713
  appWrapper.appendChild(app);
@@ -1720,7 +1721,8 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
1720
1721
  app.id = appId;
1721
1722
  isPosition = false;
1722
1723
  }
1723
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
1724
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1725
+ document.body.classList.add('taro-app-wrap');
1724
1726
  app.classList.add('taro_router');
1725
1727
  const container = document.createElement('div');
1726
1728
  container.classList.add('taro-tabbar__container');
package/dist/index.js CHANGED
@@ -16,7 +16,8 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
16
16
  app.id = appId;
17
17
  isPosition = false;
18
18
  }
19
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
19
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
20
+ document.body.classList.add('taro-app-wrap');
20
21
  app.classList.add('taro_router');
21
22
  if (!isPosition)
22
23
  appWrapper.appendChild(app);
@@ -30,7 +31,8 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
30
31
  app.id = appId;
31
32
  isPosition = false;
32
33
  }
33
- const appWrapper = (app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body;
34
+ const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
35
+ document.body.classList.add('taro-app-wrap');
34
36
  app.classList.add('taro_router');
35
37
  const container = document.createElement('div');
36
38
  container.classList.add('taro-tabbar__container');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/router",
3
- "version": "4.0.0-alpha.30",
3
+ "version": "4.0.0-alpha.32",
4
4
  "description": "Taro-router",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -34,15 +34,15 @@
34
34
  "universal-router": "^9.2.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tarojs/components": "4.0.0-alpha.30",
38
- "@tarojs/runtime": "4.0.0-alpha.30",
39
- "@tarojs/taro": "4.0.0-alpha.30",
40
- "@tarojs/shared": "4.0.0-alpha.30"
37
+ "@tarojs/components": "4.0.0-alpha.32",
38
+ "@tarojs/runtime": "4.0.0-alpha.32",
39
+ "@tarojs/taro": "4.0.0-alpha.32",
40
+ "@tarojs/shared": "4.0.0-alpha.32"
41
41
  },
42
42
  "peerDependencies": {
43
- "@tarojs/runtime": "4.0.0-alpha.30",
44
- "@tarojs/taro": "4.0.0-alpha.30",
45
- "@tarojs/shared": "4.0.0-alpha.30"
43
+ "@tarojs/runtime": "4.0.0-alpha.32",
44
+ "@tarojs/taro": "4.0.0-alpha.32",
45
+ "@tarojs/shared": "4.0.0-alpha.32"
46
46
  },
47
47
  "scripts": {
48
48
  "prod": "pnpm run build",