@ray-js/framework 1.4.3 → 1.4.4
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/package.json +9 -9
- package/lib/createApp.d.ts +0 -2
- package/lib/createApp.js +0 -10
- package/lib/index.native.d.ts +0 -1
- package/lib/index.native.js +0 -1
- package/lib/utils/normalizeTabBar.d.ts +0 -2
- package/lib/utils/normalizeTabBar.js +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/framework",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "Ray Core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"watch": "tsc -p ./tsconfig.build.json --module esnext --outDir lib --watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ray-js/framework-mp": "^1.4.
|
|
27
|
-
"@ray-js/framework-shared": "^1.4.
|
|
28
|
-
"@ray-js/library": "^1.4.
|
|
29
|
-
"@ray-js/location": "^1.4.
|
|
30
|
-
"@ray-js/router": "^1.4.
|
|
31
|
-
"@ray-js/runtime": "^1.4.
|
|
26
|
+
"@ray-js/framework-mp": "^1.4.4",
|
|
27
|
+
"@ray-js/framework-shared": "^1.4.4",
|
|
28
|
+
"@ray-js/library": "^1.4.4",
|
|
29
|
+
"@ray-js/location": "^1.4.4",
|
|
30
|
+
"@ray-js/router": "^1.4.4",
|
|
31
|
+
"@ray-js/runtime": "^1.4.4",
|
|
32
32
|
"clsx": "^1.2.1",
|
|
33
33
|
"hoist-non-react-statics": "^3.3.2",
|
|
34
34
|
"lodash.get": "^4.4.2",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tiny-invariant": "^1.3.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ray-js/cli": "^1.4.
|
|
41
|
-
"@ray-js/types": "^1.4.
|
|
40
|
+
"@ray-js/cli": "^1.4.4",
|
|
41
|
+
"@ray-js/types": "^1.4.4"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public",
|
package/lib/createApp.d.ts
DELETED
package/lib/createApp.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom';
|
|
3
|
-
import { Application } from './components/Application';
|
|
4
|
-
export function createApp(options) {
|
|
5
|
-
var root = document.createElement('div');
|
|
6
|
-
root.id = 'root';
|
|
7
|
-
document.body.appendChild(root); // 作为 web 构建的启动入口文件
|
|
8
|
-
|
|
9
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(Application, options), root);
|
|
10
|
-
}
|
package/lib/index.native.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@ray-js/framework-native';
|
package/lib/index.native.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@ray-js/framework-native';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.array.map.js";
|
|
2
|
-
import "core-js/modules/es.array.find.js";
|
|
3
|
-
import "core-js/modules/es.object.to-string.js";
|
|
4
|
-
export function normalizeTabBar(tabBar, routes) {
|
|
5
|
-
if (tabBar.list) {
|
|
6
|
-
tabBar.list = tabBar.list.map(function (item) {
|
|
7
|
-
if (item.id) {
|
|
8
|
-
item.route = routes.find(function (i) {
|
|
9
|
-
return i.id === item.id;
|
|
10
|
-
}).route;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return item;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return tabBar;
|
|
18
|
-
}
|