render-core 1.3.15 → 1.3.17
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.
|
@@ -38,11 +38,11 @@ var AppController = /** @class */ (function () {
|
|
|
38
38
|
for (var fieldsKey in this.fields) {
|
|
39
39
|
if (this.fields[fieldsKey].react) {
|
|
40
40
|
if (status_read({
|
|
41
|
-
type: "
|
|
41
|
+
type: "session",
|
|
42
42
|
fields: [fieldsKey]
|
|
43
43
|
})[fieldsKey]) {
|
|
44
44
|
this.fields[fieldsKey].data = status_read({
|
|
45
|
-
type: "
|
|
45
|
+
type: "session",
|
|
46
46
|
fields: [fieldsKey]
|
|
47
47
|
})[fieldsKey]["data"];
|
|
48
48
|
}
|
|
@@ -54,14 +54,19 @@ var AppController = /** @class */ (function () {
|
|
|
54
54
|
*/
|
|
55
55
|
AppController.prototype.storeFields = function () {
|
|
56
56
|
for (var fieldsKey in this.fields) {
|
|
57
|
-
|
|
58
|
-
Reflect.set(data, fieldsKey, {
|
|
59
|
-
data: this.fields[fieldsKey]["data"]
|
|
60
|
-
});
|
|
61
|
-
status_write({
|
|
57
|
+
if (!status_read({
|
|
62
58
|
type: "local",
|
|
63
|
-
fields:
|
|
64
|
-
})
|
|
59
|
+
fields: [fieldsKey]
|
|
60
|
+
})[fieldsKey]) {
|
|
61
|
+
var data = {};
|
|
62
|
+
Reflect.set(data, fieldsKey, {
|
|
63
|
+
data: this.fields[fieldsKey]["data"]
|
|
64
|
+
});
|
|
65
|
+
status_write({
|
|
66
|
+
type: "local",
|
|
67
|
+
fields: data
|
|
68
|
+
});
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
};
|
|
67
72
|
/**
|
|
@@ -84,7 +89,7 @@ var AppController = /** @class */ (function () {
|
|
|
84
89
|
//执行回调
|
|
85
90
|
if (this.fields[field].callback) {
|
|
86
91
|
// @ts-ignore
|
|
87
|
-
this.
|
|
92
|
+
this.fields[field].callback(value, window.context);
|
|
88
93
|
}
|
|
89
94
|
};
|
|
90
95
|
/**
|
|
@@ -22,11 +22,11 @@ var ContextController = /** @class */ (function () {
|
|
|
22
22
|
for (var fieldsKey in this.fields) {
|
|
23
23
|
if (this.fields[fieldsKey].react) {
|
|
24
24
|
if (status_read({
|
|
25
|
-
type: "
|
|
25
|
+
type: "local",
|
|
26
26
|
fields: [fieldsKey]
|
|
27
27
|
})[fieldsKey]) {
|
|
28
28
|
this.fields[fieldsKey].data = status_read({
|
|
29
|
-
type: "
|
|
29
|
+
type: "local",
|
|
30
30
|
fields: [fieldsKey]
|
|
31
31
|
})[fieldsKey]["data"];
|
|
32
32
|
}
|
|
@@ -35,14 +35,19 @@ var ContextController = /** @class */ (function () {
|
|
|
35
35
|
};
|
|
36
36
|
ContextController.prototype.storeFields = function () {
|
|
37
37
|
for (var fieldsKey in this.fields) {
|
|
38
|
-
|
|
39
|
-
Reflect.set(data, fieldsKey, {
|
|
40
|
-
data: this.fields[fieldsKey]["data"]
|
|
41
|
-
});
|
|
42
|
-
status_write({
|
|
38
|
+
if (!status_read({
|
|
43
39
|
type: "session",
|
|
44
|
-
fields:
|
|
45
|
-
})
|
|
40
|
+
fields: [fieldsKey]
|
|
41
|
+
})[fieldsKey]) {
|
|
42
|
+
var data = {};
|
|
43
|
+
Reflect.set(data, fieldsKey, {
|
|
44
|
+
data: this.fields[fieldsKey]["data"]
|
|
45
|
+
});
|
|
46
|
+
status_write({
|
|
47
|
+
type: "session",
|
|
48
|
+
fields: data
|
|
49
|
+
});
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
};
|
|
48
53
|
/**
|