@xuda.io/runtime-bundle 1.0.850 → 1.0.852
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.
|
@@ -27557,7 +27557,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27557
27557
|
// }
|
|
27558
27558
|
|
|
27559
27559
|
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
27560
|
-
break;
|
|
27560
|
+
// break;
|
|
27561
27561
|
} catch (err) {
|
|
27562
27562
|
console.error(err);
|
|
27563
27563
|
}
|
|
@@ -27848,7 +27848,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27848
27848
|
render_viewport: async function () {
|
|
27849
27849
|
const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
|
|
27850
27850
|
if (nodeP?.children?.length && !$div.children().length) {
|
|
27851
|
-
|
|
27851
|
+
$div.removeClass('skeleton');
|
|
27852
27852
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
27853
27853
|
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);
|
|
27854
27854
|
}
|
|
@@ -34446,12 +34446,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34446
34446
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34447
34447
|
$div.on('inViewport', function () {
|
|
34448
34448
|
if ($div.children().length) {
|
|
34449
|
-
|
|
34449
|
+
$div.removeClass('skeleton');
|
|
34450
34450
|
return;
|
|
34451
34451
|
}
|
|
34452
34452
|
|
|
34453
34453
|
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
34454
|
-
|
|
34454
|
+
$div.removeClass('skeleton');
|
|
34455
34455
|
$div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
34456
34456
|
} else {
|
|
34457
34457
|
hover_in($div);
|
|
@@ -34461,12 +34461,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34461
34461
|
});
|
|
34462
34462
|
|
|
34463
34463
|
$div.on('outViewport', function () {
|
|
34464
|
-
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone();
|
|
34464
|
+
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
34465
34465
|
$div.empty();
|
|
34466
34466
|
// $div.addClass('skeleton');
|
|
34467
34467
|
observer_inViewport.observe($div[0]);
|
|
34468
34468
|
});
|
|
34469
|
-
|
|
34469
|
+
$div.addClass('skeleton');
|
|
34470
34470
|
observer_inViewport.observe($div[0]);
|
|
34471
34471
|
// observer_outViewport.observe($div[0]);
|
|
34472
34472
|
} else {
|