@xuda.io/runtime-bundle 1.0.851 → 1.0.853
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.
|
@@ -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
|
}
|
|
@@ -31220,6 +31220,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31220
31220
|
}, 100);
|
|
31221
31221
|
return;
|
|
31222
31222
|
}
|
|
31223
|
+
UI_WORKER_OBJ.cache = {};
|
|
31223
31224
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31224
31225
|
if (_session.engine_mode === 'live_preview') {
|
|
31225
31226
|
console.info('========= xu-attributes refresh info ==============');
|
|
@@ -31673,6 +31674,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31673
31674
|
}
|
|
31674
31675
|
}
|
|
31675
31676
|
if (found) {
|
|
31677
|
+
UI_WORKER_OBJ.cache = {};
|
|
31676
31678
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31677
31679
|
if (_session.engine_mode === 'live_preview') {
|
|
31678
31680
|
console.info('========= refresh info ==============');
|
|
@@ -34446,12 +34448,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34446
34448
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34447
34449
|
$div.on('inViewport', function () {
|
|
34448
34450
|
if ($div.children().length) {
|
|
34449
|
-
|
|
34451
|
+
$div.removeClass('skeleton');
|
|
34450
34452
|
return;
|
|
34451
34453
|
}
|
|
34452
34454
|
|
|
34453
34455
|
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
34454
|
-
|
|
34456
|
+
$div.removeClass('skeleton');
|
|
34455
34457
|
$div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
34456
34458
|
} else {
|
|
34457
34459
|
hover_in($div);
|
|
@@ -34461,12 +34463,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34461
34463
|
});
|
|
34462
34464
|
|
|
34463
34465
|
$div.on('outViewport', function () {
|
|
34464
|
-
|
|
34465
|
-
|
|
34466
|
+
if ($div.children().length) {
|
|
34467
|
+
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
34468
|
+
$div.empty();
|
|
34469
|
+
}
|
|
34466
34470
|
// $div.addClass('skeleton');
|
|
34467
34471
|
observer_inViewport.observe($div[0]);
|
|
34468
34472
|
});
|
|
34469
|
-
|
|
34473
|
+
$div.addClass('skeleton');
|
|
34470
34474
|
observer_inViewport.observe($div[0]);
|
|
34471
34475
|
// observer_outViewport.observe($div[0]);
|
|
34472
34476
|
} else {
|