render-core 1.0.20 → 1.0.22
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/cmd/v-ref.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getProxyForInject } from "../proxy/getProxy";
|
|
2
1
|
export function resolver_Ref(el) {
|
|
3
2
|
var refs = new Map();
|
|
4
3
|
for (var i = 0; i < el.length; i++) {
|
|
@@ -6,5 +5,5 @@ export function resolver_Ref(el) {
|
|
|
6
5
|
refs.set(el[i].getAttribute("ref"), el[i]);
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
return
|
|
8
|
+
return refs;
|
|
10
9
|
}
|
package/core/proxy/getProxy.d.ts
CHANGED
package/core/proxy/getProxy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSetter
|
|
1
|
+
import { getSetter } from "../../library/setter/setter";
|
|
2
2
|
export function getProxyObject(obj, updater) {
|
|
3
3
|
//定义代理方法对象
|
|
4
4
|
var handel = {};
|
|
@@ -7,8 +7,3 @@ export function getProxyObject(obj, updater) {
|
|
|
7
7
|
//返回代理对象
|
|
8
8
|
return new Proxy(obj, handel);
|
|
9
9
|
}
|
|
10
|
-
export function getProxyForInject(obj) {
|
|
11
|
-
var handel = {};
|
|
12
|
-
handel["set"] = getSetterForInject(obj);
|
|
13
|
-
return new Proxy(obj, handel);
|
|
14
|
-
}
|
package/core/resolver/props.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { getProxyForInject } from "../proxy/getProxy";
|
|
2
1
|
export function resolveProps(node, properties) {
|
|
3
2
|
if (properties instanceof Array) {
|
|
4
|
-
return
|
|
3
|
+
return getAllPropsByArray(node, properties);
|
|
5
4
|
}
|
|
6
5
|
if (properties instanceof Object) {
|
|
7
|
-
return
|
|
6
|
+
return getAllPropsByObject(node, properties);
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
export function getAllPropsByArray(node, array) {
|
package/core/resolver/query.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getProxyForInject } from "../proxy/getProxy";
|
|
2
1
|
export function resolve_Queries() {
|
|
3
2
|
var query = new Map();
|
|
4
3
|
if (location.search !== undefined) {
|
|
@@ -9,5 +8,5 @@ export function resolve_Queries() {
|
|
|
9
8
|
Reflect.set(query, results[0], results[1]);
|
|
10
9
|
});
|
|
11
10
|
}
|
|
12
|
-
return
|
|
11
|
+
return query;
|
|
13
12
|
}
|