@xuda.io/runtime-bundle 1.0.576 → 1.0.577
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -12368,13 +12368,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12368
12368
|
[`xu-teleport`]: {
|
|
12369
12369
|
to: async function ($elm, val) {
|
|
12370
12370
|
if (val.value) {
|
|
12371
|
-
$elm.data('xuTeleportData', []);
|
|
12371
|
+
$elm.parent().data('xuTeleportData', []);
|
|
12372
12372
|
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12373
12373
|
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
12374
12374
|
// $teleport_elm.data('xuTeleportParentId', );
|
|
12375
|
-
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12376
|
-
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
12375
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12376
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
12377
12377
|
}
|
|
12378
|
+
$elm.remove();
|
|
12378
12379
|
}
|
|
12379
12380
|
return { abort: true };
|
|
12380
12381
|
},
|
|
@@ -10100,13 +10100,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10100
10100
|
[`xu-teleport`]: {
|
|
10101
10101
|
to: async function ($elm, val) {
|
|
10102
10102
|
if (val.value) {
|
|
10103
|
-
$elm.data('xuTeleportData', []);
|
|
10103
|
+
$elm.parent().data('xuTeleportData', []);
|
|
10104
10104
|
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
10105
10105
|
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
10106
10106
|
// $teleport_elm.data('xuTeleportParentId', );
|
|
10107
|
-
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
10108
|
-
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
10107
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
10108
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
10109
10109
|
}
|
|
10110
|
+
$elm.remove();
|
|
10110
10111
|
}
|
|
10111
10112
|
return { abort: true };
|
|
10112
10113
|
},
|