render-core 1.3.51 → 1.3.52
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 +6 -0
- package/index.js +8 -1
- package/package.json +1 -1
|
@@ -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
|
@@ -35,3 +35,9 @@ export declare class RenderJS implements RenderTip {
|
|
|
35
35
|
*/
|
|
36
36
|
registerElements(name: string, func: any): void;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Use the func to register some tool-functions to the windows object.
|
|
40
|
+
* @param name
|
|
41
|
+
* @param func
|
|
42
|
+
*/
|
|
43
|
+
export declare function registerElements(name: string, func: any): void;
|
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
|
*/
|
|
@@ -68,3 +67,11 @@ var RenderJS = /** @class */ (function () {
|
|
|
68
67
|
return RenderJS;
|
|
69
68
|
}());
|
|
70
69
|
export { RenderJS };
|
|
70
|
+
/**
|
|
71
|
+
* Use the func to register some tool-functions to the windows object.
|
|
72
|
+
* @param name
|
|
73
|
+
* @param func
|
|
74
|
+
*/
|
|
75
|
+
export function registerElements(name, func) {
|
|
76
|
+
Reflect.set(window, name, func);
|
|
77
|
+
}
|