@tarojs/router 4.0.8-beta.0 → 4.0.8-beta.3
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/README.md +2 -3
- package/dist/index.cjs.js +9 -2
- package/dist/index.esm.js +9 -2
- package/dist/navigationBar.js +2 -1
- package/dist/style.js +7 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ H5 端路由系统。
|
|
|
4
4
|
|
|
5
5
|
## 核心 API
|
|
6
6
|
|
|
7
|
-
### createRouter(app, config, type, framework,
|
|
7
|
+
### createRouter(app, config, type, framework, reactDOM)
|
|
8
8
|
|
|
9
9
|
暴露给 `@tarojs/taro-loader/h5` 调用,在应用入口文件中调用,创建一个兼容小程序路由规范的应用。
|
|
10
10
|
|
|
@@ -26,7 +26,6 @@ H5 端路由系统。
|
|
|
26
26
|
|
|
27
27
|
框架的 default import 对象。
|
|
28
28
|
|
|
29
|
-
### `
|
|
29
|
+
### `reactDOM`
|
|
30
30
|
|
|
31
31
|
可选,`react-dom` 的 default import 对象。
|
|
32
|
-
|
package/dist/index.cjs.js
CHANGED
|
@@ -63,6 +63,12 @@ ${enableWindowScroll ? '' : `
|
|
|
63
63
|
`}
|
|
64
64
|
}
|
|
65
65
|
${enableTabBar ? `
|
|
66
|
+
.taro-tabbar__container {
|
|
67
|
+
height:100%;
|
|
68
|
+
}
|
|
69
|
+
.taro-tabbar__panel {
|
|
70
|
+
height: 100%;
|
|
71
|
+
}
|
|
66
72
|
.taro-tabbar__container > .taro-tabbar__panel {
|
|
67
73
|
overflow: hidden;
|
|
68
74
|
}
|
|
@@ -81,7 +87,7 @@ ${enhanceAnimation
|
|
|
81
87
|
}` : ` .taro_page_shade,
|
|
82
88
|
.taro_router > .taro_page.taro_page_show.taro_page_stationed:not(.taro_page_shade):not(.taro_tabbar_page):not(:last-child) {
|
|
83
89
|
display: none;
|
|
84
|
-
}`}
|
|
90
|
+
}`}
|
|
85
91
|
`;
|
|
86
92
|
addStyle(css);
|
|
87
93
|
}
|
|
@@ -220,7 +226,8 @@ function initNavigationBar(config, container) {
|
|
|
220
226
|
navigationBar.appendChild(navigationBarBackBtn);
|
|
221
227
|
navigationBar.appendChild(navigationBarTitleWrap);
|
|
222
228
|
navigationBar.id = 'taro-navigation-bar';
|
|
223
|
-
|
|
229
|
+
// prepend 不兼容 android6
|
|
230
|
+
container.insertBefore(navigationBar, container.firstChild);
|
|
224
231
|
loadNavigationBarStyle();
|
|
225
232
|
}
|
|
226
233
|
|
package/dist/index.esm.js
CHANGED
|
@@ -62,6 +62,12 @@ ${enableWindowScroll ? '' : `
|
|
|
62
62
|
`}
|
|
63
63
|
}
|
|
64
64
|
${enableTabBar ? `
|
|
65
|
+
.taro-tabbar__container {
|
|
66
|
+
height:100%;
|
|
67
|
+
}
|
|
68
|
+
.taro-tabbar__panel {
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
65
71
|
.taro-tabbar__container > .taro-tabbar__panel {
|
|
66
72
|
overflow: hidden;
|
|
67
73
|
}
|
|
@@ -80,7 +86,7 @@ ${enhanceAnimation
|
|
|
80
86
|
}` : ` .taro_page_shade,
|
|
81
87
|
.taro_router > .taro_page.taro_page_show.taro_page_stationed:not(.taro_page_shade):not(.taro_tabbar_page):not(:last-child) {
|
|
82
88
|
display: none;
|
|
83
|
-
}`}
|
|
89
|
+
}`}
|
|
84
90
|
`;
|
|
85
91
|
addStyle(css);
|
|
86
92
|
}
|
|
@@ -219,7 +225,8 @@ function initNavigationBar(config, container) {
|
|
|
219
225
|
navigationBar.appendChild(navigationBarBackBtn);
|
|
220
226
|
navigationBar.appendChild(navigationBarTitleWrap);
|
|
221
227
|
navigationBar.id = 'taro-navigation-bar';
|
|
222
|
-
|
|
228
|
+
// prepend 不兼容 android6
|
|
229
|
+
container.insertBefore(navigationBar, container.firstChild);
|
|
223
230
|
loadNavigationBarStyle();
|
|
224
231
|
}
|
|
225
232
|
|
package/dist/navigationBar.js
CHANGED
|
@@ -37,7 +37,8 @@ function initNavigationBar(config, container) {
|
|
|
37
37
|
navigationBar.appendChild(navigationBarBackBtn);
|
|
38
38
|
navigationBar.appendChild(navigationBarTitleWrap);
|
|
39
39
|
navigationBar.id = 'taro-navigation-bar';
|
|
40
|
-
|
|
40
|
+
// prepend 不兼容 android6
|
|
41
|
+
container.insertBefore(navigationBar, container.firstChild);
|
|
41
42
|
loadNavigationBarStyle();
|
|
42
43
|
}
|
|
43
44
|
|
package/dist/style.js
CHANGED
|
@@ -52,6 +52,12 @@ ${enableWindowScroll ? '' : `
|
|
|
52
52
|
`}
|
|
53
53
|
}
|
|
54
54
|
${enableTabBar ? `
|
|
55
|
+
.taro-tabbar__container {
|
|
56
|
+
height:100%;
|
|
57
|
+
}
|
|
58
|
+
.taro-tabbar__panel {
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
55
61
|
.taro-tabbar__container > .taro-tabbar__panel {
|
|
56
62
|
overflow: hidden;
|
|
57
63
|
}
|
|
@@ -70,7 +76,7 @@ ${enhanceAnimation
|
|
|
70
76
|
}` : ` .taro_page_shade,
|
|
71
77
|
.taro_router > .taro_page.taro_page_show.taro_page_stationed:not(.taro_page_shade):not(.taro_tabbar_page):not(:last-child) {
|
|
72
78
|
display: none;
|
|
73
|
-
}`}
|
|
79
|
+
}`}
|
|
74
80
|
`;
|
|
75
81
|
addStyle(css);
|
|
76
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/router",
|
|
3
|
-
"version": "4.0.8-beta.
|
|
3
|
+
"version": "4.0.8-beta.3",
|
|
4
4
|
"description": "Taro-router",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main:h5": "dist/index.esm.js",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/index.cjs.js",
|
|
11
|
-
"
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
14
|
"types",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"universal-router": "^9.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tarojs/components": "4.0.8-beta.
|
|
38
|
-
"@tarojs/
|
|
39
|
-
"@tarojs/
|
|
40
|
-
"@tarojs/
|
|
37
|
+
"@tarojs/components": "4.0.8-beta.3",
|
|
38
|
+
"@tarojs/runtime": "4.0.8-beta.3",
|
|
39
|
+
"@tarojs/taro": "4.0.8-beta.3",
|
|
40
|
+
"@tarojs/shared": "4.0.8-beta.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@tarojs/runtime": "4.0.8-beta.
|
|
44
|
-
"@tarojs/taro": "4.0.8-beta.
|
|
45
|
-
"@tarojs/shared": "4.0.8-beta.
|
|
43
|
+
"@tarojs/runtime": "4.0.8-beta.3",
|
|
44
|
+
"@tarojs/taro": "4.0.8-beta.3",
|
|
45
|
+
"@tarojs/shared": "4.0.8-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"prod": "pnpm run build",
|
|
49
49
|
"prebuild": "pnpm run clean",
|
|
50
50
|
"build": "pnpm run rollup --environment NODE_ENV:production",
|
|
51
|
-
"clean": "rimraf
|
|
51
|
+
"clean": "rimraf ./dist",
|
|
52
52
|
"dev": "pnpm run rollup --environment NODE_ENV:development -w",
|
|
53
53
|
"rollup": "rollup --config rollup.config.mts --configPlugin typescript"
|
|
54
54
|
}
|