render-core 1.0.106 → 1.0.108
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.
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { status_read, status_write } from "render-status";
|
|
3
|
+
import { reloadStyle } from "../../core/utility/styleUtility";
|
|
3
4
|
var ContextController = /** @class */ (function () {
|
|
4
5
|
function ContextController() {
|
|
5
6
|
this.mixinData = {};
|
|
6
7
|
this.fileds = {
|
|
7
|
-
|
|
8
|
+
theme: {
|
|
8
9
|
data: "default",
|
|
9
|
-
react: true
|
|
10
|
+
react: true,
|
|
11
|
+
callback: function (value) {
|
|
12
|
+
reloadStyle(value);
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
15
|
};
|
|
12
16
|
}
|
package/package.json
CHANGED
package/runtime/tools.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component } from "../class/component/component";
|
|
2
2
|
import { themeStyle } from "../core/utility/styleUtility";
|
|
3
|
-
import { AppController } from "../class/controller/appController";
|
|
4
3
|
import { renderHtml } from "./runtime";
|
|
5
4
|
import { redirect } from "render-security/utility/redirect";
|
|
6
5
|
/**
|
|
@@ -36,16 +35,10 @@ export function registerTagLib(application, component) {
|
|
|
36
35
|
* @param renderjs
|
|
37
36
|
*/
|
|
38
37
|
export function render(renderjs) {
|
|
39
|
-
//save tagLib to window
|
|
40
|
-
Reflect.set(window, "tagLib", renderjs.tagLib);
|
|
41
38
|
//获取styleLib对象
|
|
42
39
|
renderjs.tagLib.forEach(function (component) {
|
|
43
40
|
themeStyle(component, renderjs.styleLib);
|
|
44
41
|
});
|
|
45
|
-
//save styleLib to window
|
|
46
|
-
Reflect.set(window, "styleLib", renderjs.styleLib);
|
|
47
|
-
Reflect.set(window, "context", new AppController());
|
|
48
|
-
Reflect.set(window, "router", renderjs.router);
|
|
49
42
|
//开始渲染
|
|
50
43
|
renderHtml(document.body.children, renderjs.page);
|
|
51
44
|
}
|