render-core 1.0.95 → 1.0.97
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.
|
@@ -27,8 +27,16 @@ export function bindModelForUpdater(nodes, data, controller) {
|
|
|
27
27
|
//光标定位
|
|
28
28
|
var listener = function (evt) {
|
|
29
29
|
if (!evt.target.hasAttribute("flag")) {
|
|
30
|
+
//Get the event element
|
|
30
31
|
var element = evt.target;
|
|
32
|
+
//Get the name attribute
|
|
31
33
|
var dataName_1 = element.name;
|
|
34
|
+
Reflect.set(this, "origin", {
|
|
35
|
+
cpn: element.getAttribute("cpn"),
|
|
36
|
+
tag: element.nodeName,
|
|
37
|
+
name: element.getAttribute("name")
|
|
38
|
+
});
|
|
39
|
+
//Update the value
|
|
32
40
|
this[dataName_1] = element.value;
|
|
33
41
|
}
|
|
34
42
|
};
|
|
@@ -9,7 +9,9 @@ export function locateInputAddress(controller) {
|
|
|
9
9
|
var target = document.querySelectorAll(doc_1.tag.toLowerCase().concat("[cpn=".concat(doc_1.cpn).concat("]")));
|
|
10
10
|
target.forEach(function (value) {
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
if (value.
|
|
12
|
+
if (value.getAttribute("name") === doc_1.name) {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
value.focus();
|
|
13
15
|
// @ts-ignore
|
|
14
16
|
value.setSelectionRange(controller.proxyForMethods[doc_1.name].length, controller.proxyForMethods[doc_1.name].length);
|
|
15
17
|
}
|