render-core 1.3.8 → 1.3.10
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 -0
- package/class/controller/appController.d.ts +1 -1
- package/class/controller/appController.js +1 -1
- package/index.d.ts +6 -0
- package/index.js +8 -0
- package/package.json +2 -1
- package/runtime/runtime.js +1 -1
package/README.md
ADDED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -74,3 +74,11 @@ var RenderJS = /** @class */ (function () {
|
|
|
74
74
|
return RenderJS;
|
|
75
75
|
}());
|
|
76
76
|
export { RenderJS };
|
|
77
|
+
/**
|
|
78
|
+
* The tool to register element to window
|
|
79
|
+
* @param name
|
|
80
|
+
* @param func
|
|
81
|
+
*/
|
|
82
|
+
export function registerElements(name, func) {
|
|
83
|
+
Reflect.set(window, name, func);
|
|
84
|
+
}
|
package/package.json
CHANGED
package/runtime/runtime.js
CHANGED
|
@@ -11,7 +11,7 @@ export function renderHtml(collection, link) {
|
|
|
11
11
|
if (isUnKnown(collection[i].nodeName.toUpperCase())) {
|
|
12
12
|
var component = Reflect.get(window, "tagLib").get(collection[i].nodeName.toUpperCase());
|
|
13
13
|
if (component === undefined) {
|
|
14
|
-
console.
|
|
14
|
+
console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
17
|
//自定义标签
|