render-core 1.3.43 → 1.3.44
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/core/utility/miscUtility.d.ts +0 -6
- package/core/utility/miscUtility.js +0 -8
- package/index.d.ts +1 -0
- package/index.js +5 -3
- package/package.json +16 -16
|
@@ -4,9 +4,3 @@
|
|
|
4
4
|
* @param component
|
|
5
5
|
*/
|
|
6
6
|
export declare function addLabel(nodes: HTMLCollection, component: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* Use the func to register some tool-functions to the windows object.
|
|
9
|
-
* @param name
|
|
10
|
-
* @param func
|
|
11
|
-
*/
|
|
12
|
-
export declare function registerElements(name: string, func: any): void;
|
|
@@ -10,11 +10,3 @@ export function addLabel(nodes, component) {
|
|
|
10
10
|
addLabel(kk, component);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Use the func to register some tool-functions to the windows object.
|
|
15
|
-
* @param name
|
|
16
|
-
* @param func
|
|
17
|
-
*/
|
|
18
|
-
export function registerElements(name, func) {
|
|
19
|
-
Reflect.set(window, name, func);
|
|
20
|
-
}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { PageController } from "./class/controller/pageController";
|
|
|
2
2
|
import { registerTagLib, render } from "./runtime/tools";
|
|
3
3
|
import { AppController } from "./class/controller/appController";
|
|
4
4
|
import { changeStyle, changeTheme } from "./core/utility/styleUtility";
|
|
5
|
-
import { registerElements } from "./core/utility/miscUtility";
|
|
6
5
|
/**
|
|
7
6
|
* This class is the application class.
|
|
8
7
|
*/
|
|
@@ -47,9 +46,9 @@ var RenderJS = /** @class */ (function () {
|
|
|
47
46
|
//挂载对象
|
|
48
47
|
this.mount();
|
|
49
48
|
//注册函数
|
|
50
|
-
registerElements("changeStyle", changeStyle);
|
|
49
|
+
this.registerElements("changeStyle", changeStyle);
|
|
51
50
|
//注册函数
|
|
52
|
-
registerElements("changeTheme", changeTheme);
|
|
51
|
+
this.registerElements("changeTheme", changeTheme);
|
|
53
52
|
//plugin
|
|
54
53
|
this.use(function (render) {
|
|
55
54
|
sessionStorage.setItem("theme_style", "default");
|
|
@@ -68,3 +67,6 @@ var RenderJS = /** @class */ (function () {
|
|
|
68
67
|
return RenderJS;
|
|
69
68
|
}());
|
|
70
69
|
export { RenderJS };
|
|
70
|
+
export function registerElements(name, func) {
|
|
71
|
+
Reflect.set(window, name, func);
|
|
72
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "render-core",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "The extendable javascript web framework",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com//render-js/render-core.git"
|
|
10
|
-
},
|
|
11
|
-
"author": {
|
|
12
|
-
"name": "mutian",
|
|
13
|
-
"email": "mutian-xiangcai@outlook.com"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT"
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "render-core",
|
|
3
|
+
"version": "1.3.44",
|
|
4
|
+
"description": "The extendable javascript web framework",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com//render-js/render-core.git"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "mutian",
|
|
13
|
+
"email": "mutian-xiangcai@outlook.com"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT"
|
|
16
|
+
}
|