@xuda.io/runtime-bundle 1.0.843 → 1.0.845
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
|
@@ -8757,18 +8757,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8757
8757
|
},
|
|
8758
8758
|
render_viewport: async function () {
|
|
8759
8759
|
const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
|
|
8760
|
-
if (nodeP?.children?.length) {
|
|
8761
|
-
|
|
8762
|
-
// setTimeout(async () => {
|
|
8760
|
+
if (nodeP?.children?.length && !$div.children().length) {
|
|
8761
|
+
$div.removeClass('skeleton');
|
|
8763
8762
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
8764
8763
|
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
8765
8764
|
}
|
|
8766
|
-
// return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8767
|
-
// }, 1000);
|
|
8768
8765
|
}
|
|
8769
|
-
|
|
8766
|
+
|
|
8770
8767
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8771
|
-
// }, 10000);
|
|
8772
8768
|
},
|
|
8773
8769
|
};
|
|
8774
8770
|
|
|
@@ -14782,10 +14778,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14782
14778
|
|
|
14783
14779
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14784
14780
|
$div.on('inViewport', function () {
|
|
14785
|
-
if ($div.children().length)
|
|
14786
|
-
// const ui_id = $($div.children()[0]).attr('xu-ui-id');
|
|
14787
|
-
return;
|
|
14788
|
-
}
|
|
14781
|
+
if ($div.children().length) return;
|
|
14789
14782
|
|
|
14790
14783
|
hover_in($div);
|
|
14791
14784
|
|
|
@@ -14796,6 +14789,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14796
14789
|
|
|
14797
14790
|
$div.on('outViewport', function () {
|
|
14798
14791
|
$div.empty();
|
|
14792
|
+
$div.addClass('skeleton');
|
|
14799
14793
|
observer_inViewport.observe($div[0]);
|
|
14800
14794
|
});
|
|
14801
14795
|
|
|
@@ -8758,18 +8758,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8758
8758
|
},
|
|
8759
8759
|
render_viewport: async function () {
|
|
8760
8760
|
const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
|
|
8761
|
-
if (nodeP?.children?.length) {
|
|
8762
|
-
|
|
8763
|
-
// setTimeout(async () => {
|
|
8761
|
+
if (nodeP?.children?.length && !$div.children().length) {
|
|
8762
|
+
$div.removeClass('skeleton');
|
|
8764
8763
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
8765
8764
|
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
8766
8765
|
}
|
|
8767
|
-
// return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8768
|
-
// }, 1000);
|
|
8769
8766
|
}
|
|
8770
|
-
|
|
8767
|
+
|
|
8771
8768
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8772
|
-
// }, 10000);
|
|
8773
8769
|
},
|
|
8774
8770
|
};
|
|
8775
8771
|
|
|
@@ -12490,10 +12486,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12490
12486
|
|
|
12491
12487
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12492
12488
|
$div.on('inViewport', function () {
|
|
12493
|
-
if ($div.children().length)
|
|
12494
|
-
// const ui_id = $($div.children()[0]).attr('xu-ui-id');
|
|
12495
|
-
return;
|
|
12496
|
-
}
|
|
12489
|
+
if ($div.children().length) return;
|
|
12497
12490
|
|
|
12498
12491
|
hover_in($div);
|
|
12499
12492
|
|
|
@@ -12504,6 +12497,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12504
12497
|
|
|
12505
12498
|
$div.on('outViewport', function () {
|
|
12506
12499
|
$div.empty();
|
|
12500
|
+
$div.addClass('skeleton');
|
|
12507
12501
|
observer_inViewport.observe($div[0]);
|
|
12508
12502
|
});
|
|
12509
12503
|
|