render-core 1.2.14 → 1.2.15
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.
|
@@ -16,8 +16,7 @@ export function listerner(evt) {
|
|
|
16
16
|
//Get the name attribute
|
|
17
17
|
var dataName = element.name;
|
|
18
18
|
Reflect.set(this, "origin", {
|
|
19
|
-
|
|
20
|
-
tag: element.nodeName,
|
|
19
|
+
id: element.getAttribute("id"),
|
|
21
20
|
name: element.getAttribute("name")
|
|
22
21
|
});
|
|
23
22
|
//Update the value
|
|
@@ -7,19 +7,13 @@ export function locateInputAddress(controller) {
|
|
|
7
7
|
if (controller.proxyForMethods.hasOwnProperty("origin")) {
|
|
8
8
|
var doc = Reflect.get(controller.proxyForMethods, "origin");
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
var target = document.
|
|
10
|
+
var target = document.getElementById(doc.id);
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
target[i].focus();
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
target[i].setSelectionRange(controller.proxyForMethods[doc.name].length, controller.proxyForMethods[doc.name].length);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
12
|
+
target.value = controller.proxyForMethods[doc.name];
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
target.focus();
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
target.setSelectionRange(controller.proxyForMethods[doc.name].length, controller.proxyForMethods[doc.name].length);
|
|
23
17
|
//清楚输入标记
|
|
24
18
|
Reflect.deleteProperty(controller.proxyForMethods, "origin");
|
|
25
19
|
}
|