render-core 1.3.23 → 1.3.25
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.
|
@@ -10,11 +10,13 @@ var AppController = /** @class */ (function () {
|
|
|
10
10
|
system_theme: {
|
|
11
11
|
data: "default",
|
|
12
12
|
react: true,
|
|
13
|
+
push: true,
|
|
13
14
|
callback: function (value, context) {
|
|
14
15
|
context.saveFields({
|
|
15
16
|
"system_theme": {
|
|
16
17
|
data: value,
|
|
17
|
-
react: true
|
|
18
|
+
react: true,
|
|
19
|
+
down: false
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
context.storeFields();
|
|
@@ -54,6 +56,10 @@ var AppController = /** @class */ (function () {
|
|
|
54
56
|
})[fieldsKey]["data"];
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
if (this.fields[fieldsKey].push) {
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
this.fields[field].callback(fields[field]["data"], window.context);
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
};
|
|
59
65
|
/**
|
|
@@ -93,11 +99,6 @@ var AppController = /** @class */ (function () {
|
|
|
93
99
|
});
|
|
94
100
|
//更新数据
|
|
95
101
|
this.loadFields();
|
|
96
|
-
//执行回调
|
|
97
|
-
if (this.fields[field].callback) {
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
this.fields[field].callback(value, window.context);
|
|
100
|
-
}
|
|
101
102
|
};
|
|
102
103
|
/**
|
|
103
104
|
* 获取数据
|
|
@@ -26,6 +26,10 @@ var ContextController = /** @class */ (function () {
|
|
|
26
26
|
})[fieldsKey]["data"];
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
if (this.fields[fieldsKey].down) {
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
this.fields[fieldsKey].callback(this.fields[fieldsKey]["data"], window.appSite);
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
};
|
|
31
35
|
ContextController.prototype.storeFields = function () {
|
|
@@ -57,11 +61,6 @@ var ContextController = /** @class */ (function () {
|
|
|
57
61
|
});
|
|
58
62
|
//更新数据
|
|
59
63
|
this.loadFields();
|
|
60
|
-
//数据回调
|
|
61
|
-
if (this.fields[field].callback) {
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
this.fields[field].callback(value, window.appSite);
|
|
64
|
-
}
|
|
65
64
|
};
|
|
66
65
|
/**
|
|
67
66
|
* 获取数据
|