@tarojs/router 4.0.0-alpha.31 → 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
@@ -1708,7 +1708,7 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
1708
1708
  isPosition = false;
1709
1709
  }
1710
1710
  const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1711
- appWrapper.classList.add('taro-app-wrap');
1711
+ document.body.classList.add('taro-app-wrap');
1712
1712
  app.classList.add('taro_router');
1713
1713
  if (!isPosition)
1714
1714
  appWrapper.appendChild(app);
@@ -1723,7 +1723,7 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
1723
1723
  isPosition = false;
1724
1724
  }
1725
1725
  const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1726
- appWrapper.classList.add('taro-app-wrap');
1726
+ document.body.classList.add('taro-app-wrap');
1727
1727
  app.classList.add('taro_router');
1728
1728
  const container = document.createElement('div');
1729
1729
  container.classList.add('taro-tabbar__container');
package/dist/index.esm.js CHANGED
@@ -1707,7 +1707,7 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
1707
1707
  isPosition = false;
1708
1708
  }
1709
1709
  const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
1710
- appWrapper.classList.add('taro-app-wrap');
1710
+ document.body.classList.add('taro-app-wrap');
1711
1711
  app.classList.add('taro_router');
1712
1712
  if (!isPosition)
1713
1713
  appWrapper.appendChild(app);
@@ -1722,7 +1722,7 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
1722
1722
  isPosition = false;
1723
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
- appWrapper.classList.add('taro-app-wrap');
1725
+ document.body.classList.add('taro-app-wrap');
1726
1726
  app.classList.add('taro_router');
1727
1727
  const container = document.createElement('div');
1728
1728
  container.classList.add('taro-tabbar__container');
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ function handleAppMount(config, _, appId = config.appId || 'app') {
17
17
  isPosition = false;
18
18
  }
19
19
  const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
20
- appWrapper.classList.add('taro-app-wrap');
20
+ document.body.classList.add('taro-app-wrap');
21
21
  app.classList.add('taro_router');
22
22
  if (!isPosition)
23
23
  appWrapper.appendChild(app);
@@ -32,7 +32,7 @@ function handleAppMountWithTabbar(config, history, appId = config.appId || 'app'
32
32
  isPosition = false;
33
33
  }
34
34
  const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);
35
- appWrapper.classList.add('taro-app-wrap');
35
+ document.body.classList.add('taro-app-wrap');
36
36
  app.classList.add('taro_router');
37
37
  const container = document.createElement('div');
38
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.31",
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.31",
38
- "@tarojs/runtime": "4.0.0-alpha.31",
39
- "@tarojs/shared": "4.0.0-alpha.31",
40
- "@tarojs/taro": "4.0.0-alpha.31"
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.31",
44
- "@tarojs/shared": "4.0.0-alpha.31",
45
- "@tarojs/taro": "4.0.0-alpha.31"
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",